summaryrefslogtreecommitdiff
path: root/~mtjm
diff options
context:
space:
mode:
Diffstat (limited to '~mtjm')
-rw-r--r--~mtjm/h-client/PKGBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/~mtjm/h-client/PKGBUILD b/~mtjm/h-client/PKGBUILD
index 81b0c0a92..a92c2eb6d 100644
--- a/~mtjm/h-client/PKGBUILD
+++ b/~mtjm/h-client/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Michał Masłowski <mtjm@mtjm.eu>
pkgname=h-client
-_pkgver=0.0a0.dev-r26
+_pkgver=0.0a0.dev-r50
pkgver=${_pkgver/-/.}
pkgrel=1
pkgdesc="A client for an h-source server (such as http://www.h-node.com)"
@@ -12,10 +12,18 @@ depends=('python2' 'python2-distribute' 'python-pycurl' 'pygtk')
options=(!emptydirs)
# Official source is in SVN, this is made by "python2 setup.py sdist".
source=("http://mtjm.eu/releases/hclient-${_pkgver}.tar.gz")
-md5sums=('1dee91bbd4f5985b986e21953a05c477')
+sha512sums=('fa9c494d32d900bf34d9af1a68e79abbffb29380fbc1812290130e4183b496c1c29f09da216ada7898d69c8ecda58621862507672193cc4fd14ce942dfb7c986')
+
+check() {
+ cd "$srcdir/hclient-${_pkgver}"
+ python2 setup.py test
+}
package() {
cd "$srcdir/hclient-${_pkgver}"
+ # Remove tests, they aren't useful after installation.
+ rm -rf {,build/lib/}tests_hclient
+ rm -rf {,build/lib/}hclient.egg-info
python2 setup.py install --root="$pkgdir/" --optimize=1
}