[arch-commits] Commit in lrs/repos/community-x86_64 (PKGBUILD PKGBUILD)

Antonio Rojas arojas at archlinux.org
Fri Jul 13 06:29:08 UTC 2018


    Date: Friday, July 13, 2018 @ 06:29:08
  Author: arojas
Revision: 358393

archrelease: copy trunk to community-x86_64

Added:
  lrs/repos/community-x86_64/PKGBUILD
    (from rev 358392, lrs/trunk/PKGBUILD)
Deleted:
  lrs/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   63 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 29 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-13 06:28:44 UTC (rev 358392)
+++ PKGBUILD	2018-07-13 06:29:08 UTC (rev 358393)
@@ -1,34 +0,0 @@
-# $Id$
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-
-pkgname=lrs
-pkgver=062
-pkgrel=3
-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"
-license=(GPL)
-depends=(gmp)
-source=("http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/lrslib-$pkgver.tar.gz")
-sha256sums=('adf92f9c7e70c001340b9c28f414208d49c581df46b550f56ab9a360348e4f09')
-
-prepare() {
-  cd lrslib-$pkgver
-# Don't hardcode cflags
-  sed -e '/CFLAGS=/d' -i makefile
-}
-
-build() {
-  cd lrslib-$pkgver
-  CFLAGS+=" -fPIC" 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
-}
-

Copied: lrs/repos/community-x86_64/PKGBUILD (from rev 358392, lrs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-07-13 06:29:08 UTC (rev 358393)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=lrs
+_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")
+source=(https://github.com/mkoeppe/lrslib/releases/download/${pkgname}lib-$_upstreamver/${pkgname}lib-${_upstreamver/+/.}.tar.gz)
+sha256sums=('03b80a94ac4d673d588cac2561b02f6217d5a9f056e09ed59916a337974524f8')
+
+build() {
+  cd ${pkgname}lib-$_upstreamver
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd ${pkgname}lib-$_upstreamver
+  make DESTDIR="$pkgdir" install
+}
+



More information about the arch-commits mailing list