blob: 4df7f5f2896078a8915393c00ee82f54365fcfc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: Michał Masłowski <mtjm@mtjm.eu>
pkgname=h-client
_pkgver=0.0a0.dev-r80
pkgver=${_pkgver/-/.}
pkgrel=1
pkgdesc="A client for an h-source server (such as http://www.h-node.com)"
arch=('any')
url="https://savannah.nongnu.org/projects/h-client/"
license=('GPL3')
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")
sha512sums=('d148084be40aa741f012ba49285ea428b4d6c032a015f732e1a7987f8125acd04a033df97e4536cc9587a3535f701305e4d44f641479e99d0e49a0da652abf2a')
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
}
# vim:set ts=2 sw=2 et:
|