blob: 208be9986f6fa9a1163bbde7a048005998128684 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Julian Hurst <julian.hurst@pm.me>
pkgname=atomizer-git
pkgver=r26.dd33eb5
pkgrel=1
pkgdesc="Atom/Rss reader for the cli"
arch=('any')
url="https://git.sr.ht/~ark/atomizer"
license=('MIT')
groups=()
optdepends=(python-colorama)
depends=(python python-pyperclip)
makedepends=(git scdoc)
provides=(atomizer)
conflicts=(atomizer)
backup=("etc/atomizer/feeds" "etc/atomizer/config.ini")
source=("${pkgname%-git}::git+$url")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "${pkgname%-git}"
cd docs
make PREFIX=/usr
cd ..
python setup.py build
}
package() {
cd "${pkgname%-git}"
install -Dm 755 -t "$pkgdir"/etc/atomizer/ config/feeds
install -Dm 755 -t "$pkgdir"/etc/atomizer/ config/config.ini
install -Dm 755 -t "$pkgdir"/usr/share/licenses/${pkgname}/ LICENSE
cd docs
make PREFIX=/usr DESTDIR=$pkgdir install
cd ..
python setup.py install --root="$pkgdir"
}
|