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
2024-12-21 07:06:10 +00:00
pkgver=0.6.0
2024-01-29 19:00:48 +00:00
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')
2024-04-30 02:01:01 +00:00
depends=('python' 'python-docopt' 'python-dateutil' 'python-feedparser' 'python-html2text' 'python-cachecontrol' 'python-lockfile' 'python-psutil')
2024-01-29 19:00:48 +00:00
source=("https://github.com/bradford-smith94/$pkgname/archive/v$pkgver.tar.gz")
options=(zipman)
2024-12-21 07:06:10 +00:00
sha256sums=('aa1acb6677c70f389aee64efa706ae0c87c6339ae18d501f83fefa1c8bb750b4')
2024-01-29 19:00:48 +00:00
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/
}