[arch-commits] Commit in libgap/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sun Nov 13 23:10:51 UTC 2016
Date: Sunday, November 13, 2016 @ 23:10:51
Author: arojas
Revision: 195543
Build directly from GAP sources, update to 4.8.5
Modified:
libgap/trunk/PKGBUILD
----------+
PKGBUILD | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-11-13 22:14:19 UTC (rev 195542)
+++ PKGBUILD 2016-11-13 23:10:51 UTC (rev 195543)
@@ -2,7 +2,8 @@
# Maintainer: Antonio Rojas <arojas at archlinux.org>
pkgname=libgap
-pkgver=4.8.3
+pkgver=4.8.5
+_gapver=4r8p5_2016_09_25-11_49
pkgrel=1
pkgdesc="A C library version of the GAP kernel"
arch=(i686 x86_64)
@@ -9,12 +10,24 @@
url="https://bitbucket.org/vbraun/libgap"
license=(GPL)
depends=(gap)
-source=("https://bitbucket.org/vbraun/$pkgname/downloads/$pkgname-$pkgver.tar.gz")
-#source=("http://mirrors.mit.edu/sage/spkg/upstream/libgap/$pkgname-$pkgver.tar.gz")
-md5sums=('3e283da0397286b98e680804d93c6e61')
+makedepends=(git python2-ply)
+#source=("https://bitbucket.org/vbraun/$pkgname/downloads/$pkgname-$pkgver.tar.gz")
+source=("git+https://bitbucket.org/vbraun/libgap/src#commit=6f4bb7e"
+ "http://www.gap-system.org/pub/gap/gap48/tar.bz2/gap$_gapver.tar.bz2")
+md5sums=('SKIP'
+ '9aa945cda20191304a369baf2b37cab8')
+prepare() {
+ python2 src/scripts/libGAPify.py --modify gap4r8/src
+ cp -r gap4r8/src src/src
+ cd src
+ sed -e "s|\[[0-9]*\.[0-9]*\.[0-9]*\]|\[$pkgver\]|g" -i configure.ac
+ sed -e "s|SyKernelVersion = \"[0-9]*\.[0-9]*\.[0-9]*\"|SyKernelVersion = \"$pkgver\"|g" -i src/system.c
+ autoreconf -vi
+}
+
build() {
- cd $pkgname-$pkgver
+ cd src
./configure --prefix=/usr
make
@@ -21,7 +34,7 @@
}
package() {
- cd $pkgname-$pkgver
+ cd src
make install DESTDIR="$pkgdir"
}
More information about the arch-commits
mailing list