updated on Fri Jan 20 20:16:25 UTC 2012
[aur-mirror.git] / gambit-c / PKGBUILD
blobaa6ee484a1927808986deb063a733bd3d4cc9c6c
1 # Maintainer: Justin Davis <jrcd83@gmail.com>
2 _distname=gambc-v4_6_2
3 pkgname=gambit-c
4 pkgver=4.6.2
5 pkgrel=1
6 pkgdesc="Scheme R5RS interpreter and compiler (into portable C)"
7 arch=(i686 x86_64)
8 url='http://dynamo.iro.umontreal.ca/~gambit/'
9 license=('LGPL' 'APACHE')
10 makedepends=('gcc')
11 source=(
12   "http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/${_distname}.tgz"
13   gambit-c.install
15 install=gambit-c.install
16 md5sums=('f6230a1f1f56b8113e0b9e391074bcb0'
17          '1dee672a1105f5091149d166bffe5cfc')
19 # Comment out the line below if you don't have about 500 megs of RAM and
20 # compilation fails...
21 _optimize=YUP
23 build() {
24   CFGOPTS='--prefix=/usr --docdir=/usr/share/doc/gambit-c
25     --infodir=/usr/share/info
26     --libdir=/usr/lib/gambit-c
27     --enable-gcc-opts'
29   if [ "$_optimize" ] ; then
30     CFGOPTS="$CFGOPTS --enable-single-host"
31   fi
33   cd "$srcdir/$_distname"
34   ./configure $CFGOPTS
35   make
37   return 0
40 package() {
41   cd "$srcdir/$_distname"
42   make DESTDIR="$pkgdir" install
44   # gsc conflicts with the one provided by ghostscript...
45   cd "$pkgdir/usr/bin"
46   mv gsc gambitc
47   rm gsc-script
48   ln -s gambitc gsc-script
51 # Local Variables:
52 # mode: shell-script
53 # sh-basic-offset: 2
54 # End:
55 # vim:set ts=2 sw=2 et: