summaryrefslogtreecommitdiff
path: root/community/p3scan/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/p3scan/PKGBUILD')
-rw-r--r--community/p3scan/PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/community/p3scan/PKGBUILD b/community/p3scan/PKGBUILD
index 67dd6ca21..407feff1b 100644
--- a/community/p3scan/PKGBUILD
+++ b/community/p3scan/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 44195 2011-04-04 13:08:48Z spupykin $
+# $Id: PKGBUILD 59176 2011-11-21 13:12:02Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: v01d <phreakuencies@gmail.com>
@@ -20,13 +20,14 @@ build() {
cd $srcdir/$pkgname-$pkgver
# Fix CFLAGS and other options hardcoded in Makefiles
+ unset CFLAGS
sed -ri "s|^CFLAGS=-Wall( -g)? -O2|CFLAGS=-Wall $CFLAGS|" Makefile ripmime/Makefile ripmime/tnef/Makefile ripmime/ripOLE/Makefile
sed -ri 's|^LOCATION=.+$|LOCATION=/usr|' ripmime/Makefile
sed -ri 's|\$\(SYSINS\) -v -m 550 --strip p3scan \$\(PREFIX\)/sbin/|$(SYSINS) -D -v -m 550 --strip p3scan $(DESTDIR)/usr/sbin/|' Makefile
make
# Create base dirs, the Makefile assumes they're there
- install -d $pkgdir/usr/sbin $startdir/pkg/etc/rc.d $startdir/pkg/usr/man/man8
+ install -d $pkgdir/usr/sbin $pkgdir/etc/rc.d $pkgdir/usr/man/man8
# install with root set on $pkgdir
make DESTDIR=$pkgdir install