[arch-commits] Commit in shapelib/trunk (PKGBUILD)

Jelle van der Waa jelle at nymeria.archlinux.org
Sat Mar 23 21:57:49 UTC 2013


    Date: Saturday, March 23, 2013 @ 22:57:49
  Author: jelle
Revision: 86872

fix the build method and include .h in the .tar.xz

Modified:
  shapelib/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-03-23 20:03:08 UTC (rev 86871)
+++ PKGBUILD	2013-03-23 21:57:49 UTC (rev 86872)
@@ -19,6 +19,7 @@
 build() {
   cd "$pkgname-$pkgver"
   
+  sed -i -e s:'-O2':"${CFLAGS}": Makefile
   make lib
 }
 
@@ -26,6 +27,14 @@
   cd "$pkgname-$pkgver"
 
   install -d "$pkgdir/usr/lib" "$pkgdir/usr/include"
-  make PREFIX="$pkgdir/usr lib_install"
+
+  # Fix the broken makefile
+  sed -i -e s:/usr/local:${pkgdir}/usr: Makefile
+  sed -i -e s:/usr/bin/install:/bin/install: Makefile
+  make lib_install
+  
+  # Fix world readable bit not set
+  chmod 644 $pkgdir/usr/include/shapefil.h
+
   install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }




More information about the arch-commits mailing list