summaryrefslogtreecommitdiff
path: root/pcr/gnuhealth/PKGBUILD
blob: c16692899b13ac2a634804f7e4ce90b6da27c841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: SpepS <dreamspepser at yahoo dot it>
# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>

pkgname=gnuhealth
pkgver=1.8.1
pkgrel=2
pkgdesc="A free Health and Hospital Information System"
arch=(any)
url="http://health.gnu.org/"
license=('GPL3')
depends=('postgresql' 'pygtk' 'python2-pip' 'trytond')
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
}

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: