blob: c6b996f83a6bf443c7cc69daa51ba4beb8d6dc4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Contributor: Louis-Guillaume Gagnon <louis.guillaume.gagnon@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=gambit-c-git
pkgver=4.9.3.r1317.gcb11ee41
pkgrel=2
pkgdesc="Scheme R5RS interpreter and compiler (via C) - git version"
arch=('i686' 'x86_64')
url="http://gambitscheme.org"
license=('Apache' 'LGPL2.1')
depends=('bash')
makedepends=('git')
provides=('gambit-c')
conflicts=('gambit-c')
options=('staticlibs')
source=(gambit-scheme::git+https://github.com/gambit/gambit.git)
md5sums=('SKIP')
pkgver() {
cd gambit-scheme
git describe --tags|sed 's+-+.r+'| sed 's+-+.+' | cut -c2-
}
build() {
cd gambit-scheme
CFLAGS=`echo " $CFLAGS " | sed -e "s/ -O1 / /g" -e "s/ -O2 / /g" -e "s/ -O3 / /g"`
CXXFLAGS=`echo " $CXXFLAGS " | sed -e "s/ -O1 / /g" -e "s/ -O2 / /g" -e "s/ -O3 / /g"`
./configure
make
./configure --prefix=/usr \
--docdir=/usr/share/gambit-c \
--infodir=/usr/share/info \
--libdir=/usr/lib/gambit-c \
--disable-shared \
--enable-compiler-name=gambitc \
--enable-interpreter-name=gambiti \
--enable-single-host \
--enable-c-opt
make
make doc
}
check() {
cd gambit-scheme
make check
}
package() {
cd gambit-scheme
make DESTDIR="$pkgdir/" install
ln -sf /usr/bin/gambitc "$pkgdir"/usr/bin/gsc-script
}
|