summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-06-28 21:33:42 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-06-28 21:33:42 +0200
commitd0c301a4a8fb607a6847fdcb6e39e6f2bfcce059 (patch)
tree0c2927b5f9dcc874e97257637d78df84cfdd5610
parent7f4339d43bed8c1592fc32b4a2d4ae240612f019 (diff)
Fix mg build.
-rw-r--r--community/mg/PKGBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/community/mg/PKGBUILD b/community/mg/PKGBUILD
index 601e1af1b..7254bc6eb 100644
--- a/community/mg/PKGBUILD
+++ b/community/mg/PKGBUILD
@@ -20,13 +20,17 @@ md5sums=('2de35316fa8ebafe6003efaae70b723e'
build() {
cd $srcdir/$pkgname-$pkgver
- unset CFLAGS
patch -p1 <$srcdir/cleanup.patch
+
+ # The scripts building this package won't see and fix the warnings,
+ # even if they make the build fail.
+ sed -ri '/^CFLAGS\+=/d' Makefile.in
+
./configure
make prefix=/usr
mkdir -p $pkgdir/usr/bin
- make install INSTALL=/bin/install prefix=$pkgdir/usr
+ make install prefix=$pkgdir/usr
mkdir -p $pkgdir/usr/share/
mv $pkgdir/usr/man $pkgdir/usr/share/