]> wolfpit.net Git - aur/hb-downloader/.git/blob - PKGBUILD
init
[aur/hb-downloader/.git] / PKGBUILD
1 # Maintainer: wahrwolf <wahrwolf[├Ąt]wolfpit.net
2 # Contributor: MayeulC
3
4 pkgname=hb-downloader
5 pkgver=0.5.0h
6 pkgrel=7
7 pkgdesc="An unofficial library for querying the Humble Bundle API"
8 arch=('any')
9 url="https://github.com/saik0/humblebundle-python"
10 license=('MIT')
11 depends=('python-requests' 'python-pyaml')
12 makedepends=('python-setuptools')
13 options=(!emptydirs)
14 source=("$pkgname-$pkgver::https://github.com/wahrwolf/$pkgname/archive/v$pkgver.tar.gz")
15 sha256sums=('941ee284114b48aca690896913c3bf631ac346cd481db83825edd192c482887f')
16
17 build() {
18 cd "$pkgname-$pkgver"
19 python setup.py build
20 python setup.py test
21 }
22
23 package() {
24 cd "$pkgname-$pkgver"
25 install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
26 install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
27 install -Dm 644 hb-downloader-settings.yaml -T "$pkgdir/etc/hb_downloader.yaml"
28 install -Dm 755 hb-downloader.py -T "$pkgdir/usr/bin/hb_downloader"
29
30 python setup.py install --root="$pkgdir/"
31 }