summaryrefslogtreecommitdiff
path: root/pcr/gnuhealth
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-14 00:04:52 -0800
committerroot <root@rshg054.dnsready.net>2013-02-14 00:04:52 -0800
commit0bf564cf7a3d99207457267c75f92ceb67197537 (patch)
tree92c12891df8b8cc45a54b34413ecba167599bed5 /pcr/gnuhealth
parent0671250710c3e7312a4693ac45ebbaacf471d1dc (diff)
Thu Feb 14 00:04:51 PST 2013
Diffstat (limited to 'pcr/gnuhealth')
-rw-r--r--pcr/gnuhealth/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/pcr/gnuhealth/PKGBUILD b/pcr/gnuhealth/PKGBUILD
new file mode 100644
index 000000000..c7db21793
--- /dev/null
+++ b/pcr/gnuhealth/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: SpepS <dreamspepser at yahoo dot it>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
+
+pkgname=gnuhealth
+pkgver=1.8.0
+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=('2273870ccd77a24ac21b398d095a29b5')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # python2 fixes
+ export PYTHON=python2
+
+ # 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: