From 5aec64378882d980975ad6e931ad3b1a967809ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Mon, 23 Jan 2017 17:29:36 -0300 Subject: gnuhealth: minor fix --- pcr/gnuhealth/PKGBUILD | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'pcr/gnuhealth') diff --git a/pcr/gnuhealth/PKGBUILD b/pcr/gnuhealth/PKGBUILD index 77534d126..871e849e9 100644 --- a/pcr/gnuhealth/PKGBUILD +++ b/pcr/gnuhealth/PKGBUILD @@ -19,22 +19,22 @@ sha512sums=(cc7d96b30f0f8667040cf0230686b3fb86799f77655383152f2fb698ea0d969555c5 validpgpkeys=(14C7FD1362749706D602FBE2EADA01E3E44B8011) # Luis Falcon (meanmicio at GNU) prepare() { + cd $srcdir/$pkgname-$pkgver + # fix python2 problem sed -i 's|/usr/bin/env python|/usr/bin/env python2|' $(grep -rlI '/usr/bin/env python') } package() { - cd "$srcdir/$pkgname-$pkgver" - # build gnuhealth modules - for module in $(ls -1 | grep '^health*') - do - cd "$srcdir/$pkgname-$pkgver/$module" - python2 setup.py install --root=$pkgdir - done + cd $srcdir/$pkgname-$pkgver # put gnuhealth manual to man folder - cd "$srcdir/$pkgname-$pkgver" - install -Dm644 health/man/$pkgname.1 \ $pkgdir/usr/share/man/man1/$pkgname.1 + + # build gnuhealth modules + for module in $(ls -1 | grep '^health*'); do + cd $srcdir/$pkgname-$pkgver/$module + python2 setup.py install --root=$pkgdir + done } -- cgit v1.2.2