summaryrefslogtreecommitdiff
path: root/libre/h-client
diff options
context:
space:
mode:
Diffstat (limited to 'libre/h-client')
-rw-r--r--libre/h-client/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/libre/h-client/PKGBUILD b/libre/h-client/PKGBUILD
new file mode 100644
index 000000000..5e988d060
--- /dev/null
+++ b/libre/h-client/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Michał Masłowski <mtjm@mtjm.eu>
+
+pkgname=h-client
+_pkgver=0.0a0.dev-r129
+pkgver=${_pkgver/-/.}
+pkgrel=1
+pkgdesc="A client for an h-source server (such as http://www.h-node.org/)"
+arch=('any')
+url="https://savannah.nongnu.org/projects/h-client/"
+license=('GPL3')
+depends=('python2' 'python2-distribute' 'python2-pycurl' 'pygtk')
+options=(!emptydirs)
+# Official source is in SVN, this is made by "python2 setup.py sdist"
+# on a machine having Subversion 1.6.x (e.g. on Trisquel 4.0).
+source=("https://mtjm.eu/releases/hclient-${_pkgver}.tar.gz"{,.sig})
+sha512sums=('e4f8f88db5cd27bb3304c1421bd661da9c52a15297d273cd6fa81ccfd0f1c9b210dc87373ecc6d414585c525a570c7f783d706fa67e247562fd8c7fa5e59a9e7'
+ '5712b41c4a4d45482e96825762955855212c3594b61624495e6ddec0b85a4718e080da1c99be22cb91aa644ee65d3708cc06b004f84b6facf2531b7b4c897c03')
+
+build() {
+ cd "$srcdir/hclient-${_pkgver}"
+ make
+}
+
+check() {
+ cd "$srcdir/hclient-${_pkgver}"
+ python2 setup.py test
+}
+
+package() {
+ cd "$srcdir/hclient-${_pkgver}"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ make DESTDIR="$pkgdir" prefix=/usr install-data
+}
+
+# vim:set ts=2 sw=2 et: