From d3487be0fb1100dcdfa044fbe778be893002c8c9 Mon Sep 17 00:00:00 2001 From: Michał Masłowski Date: Fri, 4 Nov 2011 19:46:09 +0100 Subject: Update h-client, run its tests and remove them. --- ~mtjm/h-client/PKGBUILD | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to '~mtjm/h-client') 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 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 } -- cgit v1.2.3-54-g00ecf