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

Antonio Rojas arojas at archlinux.org
Thu Nov 24 18:43:51 UTC 2016


    Date: Thursday, November 24, 2016 @ 18:43:50
  Author: arojas
Revision: 196750

Compile with -fPIC, needed by polymake

Modified:
  lrs/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-11-24 17:48:04 UTC (rev 196749)
+++ PKGBUILD	2016-11-24 18:43:50 UTC (rev 196750)
@@ -3,7 +3,7 @@
 
 pkgname=lrs
 pkgver=062
-pkgrel=1
+pkgrel=2
 pkgdesc="C implementation of the reverse search algorithm for vertex enumeration/convex hull problems"
 arch=(i686 x86_64)
 url="http://cgm.cs.mcgill.ca/~avis/C/lrs.html"
@@ -12,9 +12,15 @@
 source=("http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/lrslib-$pkgver.tar.gz")
 md5sums=('be5da7b3b90cc2be628dcade90c5d1b9')
 
+prepare() {
+  cd lrslib-$pkgver
+# Don't hardcode cflags
+  sed -e '/CFLAGS=/d' -i makefile
+}
+
 build() {
   cd lrslib-$pkgver
-  make
+  CFLAGS+=" -fPIC" make
 }
 
 package() {
@@ -24,7 +30,5 @@
   cp lrs redund 2nash lrsnash nashdemo "$pkgdir"/usr/bin/
   install -m644 liblrsgmp.a "$pkgdir"/usr/lib
   install -m644 *.h "$pkgdir"/usr/include/lrslib
-# Compatibility symlink
-  ln -s /usr/bin/lrsnash "$pkgdir"/usr/bin/nash
 }
 



More information about the arch-commits mailing list