init
authorVincent Dahmen <wahrwolf@wolfpit.net>
Fri, 8 Feb 2019 23:46:08 +0000 (00:46 +0100)
committerVincent Dahmen <wahrwolf@wolfpit.net>
Sat, 9 Feb 2019 11:14:54 +0000 (12:14 +0100)
.SRCINFO [new file with mode: 0644]
PKGBUILD [new file with mode: 0644]

diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644 (file)
index 0000000..2971591
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = hb-downloader
+       pkgdesc = An unofficial library for querying the Humble Bundle API
+       pkgver = 0.5.0h
+       pkgrel = 7
+       url = https://github.com/saik0/humblebundle-python
+       arch = any
+       license = MIT
+       makedepends = python-setuptools
+       depends = python-requests
+       depends = python-pyaml
+       options = !emptydirs
+       source = hb-downloader-0.5.0h::https://github.com/wahrwolf/hb-downloader/archive/v0.5.0h.tar.gz
+       sha256sums = 941ee284114b48aca690896913c3bf631ac346cd481db83825edd192c482887f
+
+pkgname = hb-downloader
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644 (file)
index 0000000..06932c7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: wahrwolf <wahrwolf[├Ąt]wolfpit.net
+# Contributor: MayeulC
+
+pkgname=hb-downloader
+pkgver=0.5.0h
+pkgrel=7
+pkgdesc="An unofficial library for querying the Humble Bundle API"
+arch=('any')
+url="https://github.com/saik0/humblebundle-python"
+license=('MIT')
+depends=('python-requests' 'python-pyaml')
+makedepends=('python-setuptools')
+options=(!emptydirs)
+source=("$pkgname-$pkgver::https://github.com/wahrwolf/$pkgname/archive/v$pkgver.tar.gz")
+sha256sums=('941ee284114b48aca690896913c3bf631ac346cd481db83825edd192c482887f')
+
+build() {
+    cd "$pkgname-$pkgver"
+    python setup.py build
+    python setup.py test
+}
+
+package() {
+    cd "$pkgname-$pkgver"
+    install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+    install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+    install -Dm 644 hb-downloader-settings.yaml -T "$pkgdir/etc/hb_downloader.yaml"
+    install -Dm 755 hb-downloader.py -T "$pkgdir/usr/bin/hb_downloader"
+
+    python setup.py install --root="$pkgdir/" 
+}