diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -3,8 +3,9 @@ # Contributor: Joel Pedraza pkgname=python-humblebundle +_upstream_name=humblebundle-python pkgver=0.1.1 -pkgrel=3 +pkgrel=4 pkgdesc="An unofficial library for querying the Humble Bundle API" arch=('any') url="https://github.com/saik0/humblebundle-python" @@ -12,21 +13,18 @@ license=('MIT') depends=('python-requests') makedepends=('python-setuptools') options=(!emptydirs) -source=("https://pypi.python.org/packages/source/h/${pkgname:7}/${pkgname:7}-${pkgver}.tar.gz" - "https://raw.githubusercontent.com/saik0/humblebundle-python/master/LICENSE") -sha256sums=('82f7724c286abff1dae6586501ac6a30ea4905652006c7e57d68e03450881222' - 'e54a169f0f2f1cd1039077ef77e5566dfea2cedc61ccf1ab560b2f4c1a1b8025') +source=("$pkgname-$pkgver::https://github.com/saik0/humblebundle-python/archive/$pkgver.tar.gz") +sha256sums=('51afe971fa66d1da43c574d0bbe117abd3c6b6a0351b4273dd97ffb3d1a031bf') build() { - cd "humblebundle-$pkgver" + cd "$_upstream_name-$pkgver" python setup.py build } package() { - # LICENSE file is not included in releases + cd "$_upstream_name-$pkgver" install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" - install -Dm644 "humblebundle-$pkgver"/README.rst -t "$pkgdir/usr/share/doc/$pkgname/" + install -Dm644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/" - cd "humblebundle-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build } |