diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-07-09 21:04:53 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-07-09 21:04:53 -0300 |
commit | fd5ff7e53a5b8dbabc85ab6e2ff1342b85e155b1 (patch) | |
tree | d2b16d75c64d947545149f37bda7cdb8873a4770 /pcr/gnuhealth/PKGBUILD | |
parent | 7823c9009a845174746fd0da09af46a138481851 (diff) | |
parent | 10aa61ef39e662453e1d817046e359372fe3b326 (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community/aspell-pl/PKGBUILD
community/gloox/PKGBUILD
community/libircclient/PKGBUILD
community/mashup/PKGBUILD
community/omniorb/PKGBUILD
community/openbox/PKGBUILD
community/patchutils/PKGBUILD
community/rxvt-unicode/PKGBUILD
extra/mesa/PKGBUILD
extra/pygobject2/PKGBUILD
extra/qt5/PKGBUILD
extra/samba/PKGBUILD
extra/tdb/PKGBUILD
extra/transmission/PKGBUILD
extra/vim/PKGBUILD
pcr/python-sfml2/PKGBUILD
pcr/python2-sfml2/PKGBUILD
Diffstat (limited to 'pcr/gnuhealth/PKGBUILD')
-rw-r--r-- | pcr/gnuhealth/PKGBUILD | 79 |
1 files changed, 47 insertions, 32 deletions
diff --git a/pcr/gnuhealth/PKGBUILD b/pcr/gnuhealth/PKGBUILD index 695062e5b..3eaee88d0 100644 --- a/pcr/gnuhealth/PKGBUILD +++ b/pcr/gnuhealth/PKGBUILD @@ -1,13 +1,13 @@ -# Maintainer: SpepS <dreamspepser at yahoo dot it> -# Maintainer (Parabola): André Silva <emulatorman@lavabit.com> +# Maintainer: André Silva <emulatorman@lavabit.com> +# Contributor: SpepS <dreamspepser at yahoo dot it> pkgname=gnuhealth -pkgver=1.8.1 -pkgrel=3 +pkgver=2.0.0 +pkgrel=1 pkgdesc="A free Health and Hospital Information System" -arch=(any) -url="http://health.gnu.org/" -license=('GPL3') +arch=any +url=http://health.gnu.org/ +license=GPL3 depends=( postgresql pygtk @@ -26,33 +26,48 @@ depends=( trytond-country trytond-stock-lot ) -source=("http://ftp.gnu.org/gnu/health/$pkgname-$pkgver.tar.gz") -md5sums=('d3837242011df1d39ce7a0f1d6e6a46a') - -build() { - cd "$srcdir/$pkgname-$pkgver" - - # python2 fixes - export PYTHON=python2 - - # mv man file - mv health/man . - - ./configure --prefix=/usr -} +source=http://ftp.gnu.org/gnu/health/$pkgname-$pkgver.tar.gz +sha512sums=5d528fe4a20a2b237f32d023f44e898a012f47f9ba83611f71fba386990bf98dbbdb1fb9c5b78dd5a3b65c6fe9b2fe4e7e472fec90cab009e5b8e31b1f31ceeb package() { - cd "$srcdir/$pkgname-$pkgver" - make MANTARGET="$pkgdir/usr/share/man/man1" \ - DESTDIR="$pkgdir/" install + MODULES=( + health + health_calendar + health_genetics + health_gyneco + health_history + health_icd10 + health_icd10pcs + health_icu + health_inpatient + health_inpatient_calendar + health_lab + health_lifestyle + health_mdg6 + health_ntd + health_ntd_chagas + health_nursing + health_pediatrics + health_profile + health_qrcodes + health_reporting + health_services + health_socioeconomics + health_stock + health_surgery + health_who_essential_medicines + ) - # man - install -Dm644 man/$pkgname.1 \ - "$pkgdir/usr/share/man/man1/$pkgname.1" + # build gnuhealth modules + for module in ${MODULES[@]} + do + cd $srcdir/$pkgname-$pkgver/$module + python2 setup.py install --root=$pkgdir + done - # python2 fix - sed -i 's/env python/&2/' \ - `grep -rl 'env python' "$pkgdir"` -} + # put gnuhealth manual to man folder + cd "$srcdir/$pkgname-$pkgver" -# vim:set ts=2 sw=2 et: + install -Dm644 health/man/$pkgname.1 \ + $pkgdir/usr/share/man/man1/$pkgname.1 +} |