1 # Maintainer: Jürgen Hötzel <juergen@archlinux.org>
2 # Contributor: John Proctor <jproctor@prium.net>
3 # Contributor: Kevin Piche <kevin@archlinux.org>
9 pkgdesc="Fast scheme compiler"
11 url="https://www-sop.inria.fr/mimosa/fp/Bigloo/"
12 license=('GPL' 'LGPL')
13 depends=('gmp' 'openssl' 'libunistring' 'libnsl' 'gc' 'libuv')
14 makedepends=('emacs' 'zip' 'sqlite' 'alsa-lib' 'flac' 'avahi' 'chrpath')
15 optdepends=('emacs' 'zip' 'sqlite' 'alsa-lib' 'flac' 'avahi')
16 options=('!makeflags')
17 source=("ftp://ftp-sop.inria.fr/indes/fp/Bigloo/${pkgname}-${_src_ver}.tar.gz")
18 sha256sums=('3e139639812f7cf9293e77ce250311a38a4a2cac516a7bfb38f964a06ef3300c')
20 elisp_dir=/usr/share/emacs/site-lisp/bigloo
23 sed -i 's/$(GCLIB)/c/' "${srcdir}/${pkgname}-${_src_ver}/configure"
27 cd "${srcdir}/${pkgname}-${_src_ver}"
28 ./configure --prefix=/usr \
29 --docdir=/usr/share/doc/bigloo \
30 --mandir=/usr/share/man \
31 --infodir=/usr/share/info \
32 --lispdir=${elisp_dir} \
38 --native-default-backend \
45 make build compile-bee
49 cd "${srcdir}/${pkgname}-${_src_ver}"
54 cd "${srcdir}/${pkgname}-${_src_ver}"
56 make DESTDIR="${pkgdir}" install install-bee
57 make -C manuals DESTDIR="${pkgdir}" install-bee
59 # Remove references to the build root
60 sed -e "s|^BOOTDIR=.*|BOOTDIR=/usr|g" \
61 -e "s|^BOOTBINDIR=.*|BOOTBINDIR=/usr/bin|g" \
62 -e "s|^BOOTLIBDIR=.*|BOOTLIBDIR=/usr/lib/bigloo/${_src_ver}|g" \
63 -e "s|^BGLBUILDBINDIR=.*|BGLBUILDBINDIR=/usr/bin|g" \
64 -e "s|^BGLBUILDLIBDIR=.*|BGLBUILDLIBDIR=/usr/lib/bigloo/${_src_ver}|g" \
65 -e "s|^\(BIGLOO=.*\)\.sh|\1|" \
66 -e "s|^\(BGL.*=.*\)\.sh|\1|" \
67 -i "${pkgdir}/usr/lib/bigloo/${_src_ver%-*}/Makefile.config"