lilac/repo/informant/PKGBUILD

31 lines
1 KiB
Bash
Raw Normal View History

2024-01-29 19:00:48 +00:00
# Maintainer: Bradford Smith <aur@bradfords.me>
pkgname=informant
pkgver=0.5.0
pkgrel=1
pkgdesc="An Arch Linux News reader and pacman hook"
arch=('any')
url="https://github.com/bradford-smith94/$pkgname"
license=('MIT')
install=informant.install
makedepends=('python-setuptools')
depends=('python' 'python-docopt' 'python-dateutil' 'python-feedparser' 'python-html2text' 'python-cachecontrol' 'python-lockfile')
source=("https://github.com/bradford-smith94/$pkgname/archive/v$pkgver.tar.gz")
options=(zipman)
sha256sums=('d67a7a6edc3d2928cc1c3b0e72e21c2c9ecb75c5467e3ceba6f62f5a36bf9ccf')
build() {
cd "$srcdir/$pkgname-$pkgver"
/usr/bin/python setup.py build
}
package() {
cd "$srcdir/$pkgname-$pkgver"
export PYTHONHASHSEED=0
/usr/bin/python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm 0644 $pkgname.hook -T $pkgdir/usr/share/libalpm/hooks/00-$pkgname.hook
install -Dm 0644 LICENSE -t $pkgdir/usr/share/licenses/$pkgname/
install -Dm 0644 man/$pkgname.1 -t $pkgdir/usr/share/man/man1/
}