]>
Commit | Line | Data |
---|---|---|
fdbf9a6b | 1 | # Maintainer: wahrwolf <wahrwolf[ät]wolfpit.net |
26f093f0 AW |
2 | # Contributor: talonius |
3 | # Contributor: Brian Schkerke | |
fdbf9a6b VD |
4 | |
5 | pkgname=hb-downloader | |
6 | pkgver=0.5.0h | |
843f7742 | 7 | pkgrel=9 |
fdbf9a6b VD |
8 | pkgdesc="An unofficial library for querying the Humble Bundle API" |
9 | arch=('any') | |
26f093f0 AW |
10 | url="https://github.com/talonius/hb-downloader" |
11 | ||
12 | commit="ebbc91293c4acfc158be2100689632620fb60e50" | |
13 | ||
fdbf9a6b VD |
14 | license=('MIT') |
15 | depends=('python-requests' 'python-pyaml') | |
16 | makedepends=('python-setuptools') | |
17 | options=(!emptydirs) | |
843f7742 AW |
18 | source=( |
19 | "$pkgname-$pkgver::https://github.com/talonius/hb-downloader/archive/$commit.zip" | |
20 | "remove-logging-to-file.patch" | |
21 | ) | |
22 | sha256sums=( | |
23 | 'f11be30faaff16d31f06b07b72eecb35cb57195413b8ec4b88a552621b66d6c1' | |
24 | '2d60de18919d1dcd20c9fc2571c8905f40edffde229d37b074fdd19a8a4c4028' | |
25 | ) | |
26f093f0 AW |
26 | |
27 | prepare() { | |
843f7742 | 28 | ls |
26f093f0 | 29 | cd "$pkgname-$commit" |
843f7742 | 30 | patch hb_downloader/logger.py "$srcdir/remove-logging-to-file.patch" |
26f093f0 AW |
31 | cp hb-downloader-settings.example.yaml hb-downloader-settings.yaml |
32 | } | |
fdbf9a6b VD |
33 | |
34 | build() { | |
26f093f0 | 35 | cd "$pkgname-$commit" |
fdbf9a6b | 36 | python setup.py build |
fdbf9a6b VD |
37 | } |
38 | ||
39 | package() { | |
26f093f0 | 40 | cd "$pkgname-$commit" |
fdbf9a6b VD |
41 | install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" |
42 | install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" | |
843f7742 | 43 | install -Dm 644 hb-downloader-settings.yaml -T "$pkgdir/etc/hb-downloader-settings.yaml" |
0959c9cf | 44 | install -Dm 755 hb-downloader.py -T "$pkgdir/usr/bin/hb-downloader" |
fdbf9a6b | 45 | |
26f093f0 | 46 | python setup.py install --root="$pkgdir" --optimize=1 --skip-build |
fdbf9a6b | 47 | } |