# Maintainer: André Silva # Contributor: SpepS pkgname=gnuhealth pkgver=2.0.0 pkgrel=1 pkgdesc="A free Health and Hospital Information System" arch=any url=http://health.gnu.org/ license=GPL3 depends=( postgresql pygtk python2-dateutil python2-imaging python2-ldap python2-pip python2-psycopg2 python2-pytz python2-pywebdav python2-qrcode python2-vobject trytond trytond-account-invoice trytond-calendar trytond-country trytond-stock-lot ) source=http://ftp.gnu.org/gnu/health/$pkgname-$pkgver.tar.gz sha512sums=5d528fe4a20a2b237f32d023f44e898a012f47f9ba83611f71fba386990bf98dbbdb1fb9c5b78dd5a3b65c6fe9b2fe4e7e472fec90cab009e5b8e31b1f31ceeb package() { 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 ) # build gnuhealth modules for module in ${MODULES[@]} do cd $srcdir/$pkgname-$pkgver/$module python2 setup.py install --root=$pkgdir done # put gnuhealth manual to man folder cd "$srcdir/$pkgname-$pkgver" install -Dm644 health/man/$pkgname.1 \ $pkgdir/usr/share/man/man1/$pkgname.1 }