[arch-commits] Commit in lrs/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Fri Jul 13 06:28:45 UTC 2018
Date: Friday, July 13, 2018 @ 06:28:44
Author: arojas
Revision: 358392
Update to autotoolized fork
Modified:
lrs/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++------------------
1 file changed, 13 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-13 04:17:59 UTC (rev 358391)
+++ PKGBUILD 2018-07-13 06:28:44 UTC (rev 358392)
@@ -2,33 +2,28 @@
# Maintainer: Antonio Rojas <arojas at archlinux.org>
pkgname=lrs
-pkgver=062
-pkgrel=3
+_pkgver=062
+_date=2017-03-03
+pkgver=$_pkgver+${_date//-/.}
+_upstreamver=${_pkgver}+autotools-$_date
+pkgrel=1
pkgdesc="C implementation of the reverse search algorithm for vertex enumeration/convex hull problems"
arch=(x86_64)
url="http://cgm.cs.mcgill.ca/~avis/C/lrs.html"
license=(GPL)
depends=(gmp)
-source=("http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/lrslib-$pkgver.tar.gz")
-sha256sums=('adf92f9c7e70c001340b9c28f414208d49c581df46b550f56ab9a360348e4f09')
+#source=("http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/lrslib-$pkgver.tar.gz")
+source=(https://github.com/mkoeppe/lrslib/releases/download/${pkgname}lib-$_upstreamver/${pkgname}lib-${_upstreamver/+/.}.tar.gz)
+sha256sums=('03b80a94ac4d673d588cac2561b02f6217d5a9f056e09ed59916a337974524f8')
-prepare() {
- cd lrslib-$pkgver
-# Don't hardcode cflags
- sed -e '/CFLAGS=/d' -i makefile
-}
-
build() {
- cd lrslib-$pkgver
- CFLAGS+=" -fPIC" make
+ cd ${pkgname}lib-$_upstreamver
+ ./configure --prefix=/usr
+ make
}
package() {
- cd lrslib-$pkgver
-
- mkdir -p "$pkgdir"/usr/{lib,bin,include/lrslib}
- cp lrs redund 2nash lrsnash nashdemo "$pkgdir"/usr/bin/
- install -m644 liblrsgmp.a "$pkgdir"/usr/lib
- install -m644 *.h "$pkgdir"/usr/include/lrslib
+ cd ${pkgname}lib-$_upstreamver
+ make DESTDIR="$pkgdir" install
}
More information about the arch-commits
mailing list