From 739cc85cb12c00aaebea366df803f25ea295d172 Mon Sep 17 00:00:00 2001 From: Michał Masłowski Date: Tue, 13 Mar 2012 22:11:58 +0100 Subject: Move h-client to [libre] and update it. --- libre/h-client/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ ~mtjm/h-client/PKGBUILD | 30 ------------------------------ 2 files changed, 34 insertions(+), 30 deletions(-) create mode 100644 libre/h-client/PKGBUILD delete mode 100644 ~mtjm/h-client/PKGBUILD diff --git a/libre/h-client/PKGBUILD b/libre/h-client/PKGBUILD new file mode 100644 index 000000000..e77a2437e --- /dev/null +++ b/libre/h-client/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Michał Masłowski + +pkgname=h-client +_pkgver=0.0a0.dev-r107 +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" +# on a machine having Subversion 1.6.x (e.g. on Trisquel 4.0). +source=("https://mtjm.eu/releases/hclient-${_pkgver}.tar.gz") +sha512sums=('d820871fcf3f92e6e31aa02273ae413bf066524eaf245f1d4cf7dc8b0ba5799eb07bf86dd28861c8878c73147bbcae563668cb3a6fa9c3382c751e6717d85f0c') + +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: diff --git a/~mtjm/h-client/PKGBUILD b/~mtjm/h-client/PKGBUILD deleted file mode 100644 index 4df7f5f28..000000000 --- a/~mtjm/h-client/PKGBUILD +++ /dev/null @@ -1,30 +0,0 @@ -# Maintainer: Michał Masłowski - -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: -- cgit v1.2.3