diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-07-23 20:23:48 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-07-23 20:23:48 -0500 |
commit | 9633cf9de893bd11faeaa54a87ad4bed78634677 (patch) | |
tree | c85e41db24327ade3ccfa52ff54dc0695257c7c7 /pcr/h-client/PKGBUILD | |
parent | b714d18b4a9553dd1b1e9779f1358e6500aaf706 (diff) |
h-client-1:0.0a0.dev134-1: updating version and moving to [pcr]
Diffstat (limited to 'pcr/h-client/PKGBUILD')
-rw-r--r-- | pcr/h-client/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pcr/h-client/PKGBUILD b/pcr/h-client/PKGBUILD new file mode 100644 index 000000000..489aedb5c --- /dev/null +++ b/pcr/h-client/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> +# Contributor: Michał Masłowski <mtjm@mtjm.eu> + +pkgname=h-client +pkgver=0.0a0.dev134 +pkgrel=1 +epoch=1 +pkgdesc="A client for an h-source server (such as https://www.h-node.org/)" +arch=('any') +url="https://savannah.nongnu.org/projects/h-client/" +license=('GPL3') +depends=('python2' 'python2-distribute' 'python2-pycurl' 'pygtk' 'pciutils' 'usbutils') +makedepends=('subversion') +options=(!emptydirs) +source=("svn+http://svn.savannah.nongnu.org/svn/${pkgname}/trunk/${pkgname}" + 'h-client-fix_test.patch') +sha256sums=('SKIP' + 'df842c88bb5bcf6a97db1e2ea813f7f968d9b2e8460a16a4359d62240eb44d1a') + +prepare() { + cd "$srcdir/${pkgname}" + sed -i "s/dev/dev134/g" setup.cfg + sed -i "s/tag_svn_revision = 1//g" setup.cfg + sed -i "s/'h-node.org'/'https:\/\/h-node.org'/g" hclient/gtkclient.py + patch -Np1 -i "$srcdir/h-client-fix_test.patch" +} + +build() { + cd "$srcdir/${pkgname}" + make +} + +check() { + cd "$srcdir/${pkgname}" + python2 setup.py test +} + +package() { + cd "$srcdir/${pkgname}" + python2 setup.py install --root="$pkgdir/" --optimize=1 + make DESTDIR="$pkgdir" prefix=/usr install-data +} + +# vim:set ts=2 sw=2 et: |