diff options
author | haawda | 2019-03-10 18:53:14 +0100 |
---|---|---|
committer | haawda | 2019-03-10 18:53:14 +0100 |
commit | 8941b895646903086ccc0d75a2b597f9c037a1f1 (patch) | |
tree | f25c5aa1ac9ce9a5d07d6e370585d1bf09bdc38c | |
parent | 2041e640b522908622bcc6e985fa72d587dfee12 (diff) | |
download | aur-8941b895646903086ccc0d75a2b597f9c037a1f1.tar.gz |
change patch
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rw-r--r-- | compilescript.diff | 12 |
3 files changed, 25 insertions, 15 deletions
@@ -1,6 +1,6 @@ pkgbase = blackhole-git pkgdesc = module system for gambit-c scheme - pkgver = 0.2.4.g50bb6fd + pkgver = 0.2r4.g50bb6fd pkgrel = 1 url = http://github.com/pereckerdal/blackhole arch = x86_64 @@ -8,9 +8,10 @@ pkgbase = blackhole-git makedepends = git makedepends = gambit-c depends = glibc - options = !makeflags source = git+https://github.com/pereckerdal/blackhole.git + source = compilescript.diff md5sums = SKIP + md5sums = 29094e13f494d335ec70246ce76cadff pkgname = blackhole-git @@ -2,7 +2,7 @@ # Maintainer: Stefan Husmann <stefan-husmann@t-online.de> pkgname=blackhole-git -pkgver=0.2.4.g50bb6fd +pkgver=0.2r4.g50bb6fd pkgrel=1 pkgdesc="module system for gambit-c scheme" arch=('x86_64') @@ -10,30 +10,27 @@ url="http://github.com/pereckerdal/blackhole" license=('custom') depends=('glibc') makedepends=('git' 'gambit-c') -source=("git+https://github.com/pereckerdal/blackhole.git") -md5sums=('SKIP') -options=('!makeflags') -_gitname="blackhole" -LANG=C +source=("git+https://github.com/pereckerdal/blackhole.git" compilescript.diff) +md5sums=('SKIP' + '29094e13f494d335ec70246ce76cadff') pkgver() { - cd "$srcdir/$_gitname" - git describe --tags|sed 's+-+.+g' + cd ${pkgname%-git} + git describe --tags|sed 's+-+r+'| tr - . } prepare() { - cd "$srcdir/$_gitname" - sed -i 's+gsc +gambitc +g' compile.sh - sed -i 's+gambc+gambit+g' compile.sh + cd ${pkgname%-git} + patch -Np1 < "$srcdir"/compilescript.diff } build() { - cd "$srcdir"/$_gitname + cd ${pkgname%-git} ./compile.sh } package() { - cd "$srcdir/$_gitname" + cd ${pkgname%-git} install -D -m755 bh "${pkgdir}/usr/bin/bh" install -D -m644 LICENSE \ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" diff --git a/compilescript.diff b/compilescript.diff new file mode 100644 index 000000000000..6c0ef6489551 --- /dev/null +++ b/compilescript.diff @@ -0,0 +1,12 @@ +diff --git a/compile.sh b/compile.sh +index 165a0a5..f9dbd59 100755 +--- a/compile.sh ++++ b/compile.sh +@@ -1,5 +1,5 @@ + #!/bin/sh +-GAMBCLIBDIR="`gsc -e \"(display (path-expand \\\"~~lib\\\"))\"`" +-echo "bh.scm:" && gsc -link -l "$GAMBCLIBDIR/_gambcgsc" bh.scm && gsc -obj bh_.c bh.c && gsc -exe -ld-options "$GAMBCLIBDIR/libgambcgsc.a" bh_.o bh.o ++GAMBCLIBDIR="`gambitc -e \"(display (path-expand \\\"~~lib\\\"))\"`" ++echo "bh.scm:" && gambitc -link -l "$GAMBCLIBDIR/_gambitgsc" bh.scm && gambitc -obj bh_.c bh.c && gambitc -exe -ld-options "$GAMBCLIBDIR/libgambitgsc.a" bh_.o bh.o + rm -f bh_.o bh_.c bh.c bh.o + |