summaryrefslogtreecommitdiff
path: root/pcr/gnuhealth
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-02-13 22:39:07 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-02-13 22:39:07 -0200
commit7e67cfd42b5e333fe2bb3086e2ad490129437176 (patch)
treec7d5f7bd4400c5036f555cbeba9f270edd2f62f6 /pcr/gnuhealth
parent0dfd5c7b96811934d690ef3084820e7abfc5e879 (diff)
downloadabslibre-7e67cfd42b5e333fe2bb3086e2ad490129437176.tar.gz
abslibre-7e67cfd42b5e333fe2bb3086e2ad490129437176.tar.bz2
abslibre-7e67cfd42b5e333fe2bb3086e2ad490129437176.zip
gnuhealth-1.8.0-1: updating version and dependencies
Diffstat (limited to 'pcr/gnuhealth')
-rw-r--r--pcr/gnuhealth/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/pcr/gnuhealth/PKGBUILD b/pcr/gnuhealth/PKGBUILD
new file mode 100644
index 000000000..10d059d4a
--- /dev/null
+++ b/pcr/gnuhealth/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: SpepS <dreamspepser at yahoo dot it>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
+
+pkgname=gnuhealth
+pkgver=1.6.2
+pkgrel=1
+pkgdesc="A free Health and Hospital Information System"
+arch=(any)
+url="http://health.gnu.org/"
+license=('GPL3')
+depends=('trytond')
+source=("http://ftp.gnu.org/gnu/health/$pkgname-$pkgver.tar.gz")
+md5sums=('f36bb82a7a142c99da0218d9a889344c')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # python2 fixes
+ export PYTHON=python2
+ sed -i '/TRYTON_PATH/s/python/&2/' configure
+
+ # makefile fixes
+ sed -e '/install:/a\\tinstall -d $(DESTDIR)$(tryton_modules)/' \
+ -e 's/$(tryton/$(DESTDIR)&/' -i Makefile.in
+
+ # mv man file
+ mv health/man .
+
+ ./configure --prefix=/usr
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make MANTARGET="$pkgdir/usr/share/man/man1" \
+ DESTDIR="$pkgdir/" install
+
+ # man
+ install -Dm644 man/$pkgname.1 \
+ "$pkgdir/usr/share/man/man1/$pkgname.1"
+
+ # python2 fix
+ sed -i 's/env python/&2/' \
+ `grep -rl 'env python' "$pkgdir"`
+}
+
+# vim:set ts=2 sw=2 et: