summaryrefslogtreecommitdiff
path: root/pcr/gnuhealth/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/gnuhealth/PKGBUILD')
-rw-r--r--pcr/gnuhealth/PKGBUILD18
1 files changed, 9 insertions, 9 deletions
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) <falcon@gnu.org>
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
}