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' 'libpulse')
15 optdepends=('emacs' 'zip' 'sqlite' 'alsa-lib' 'flac' 'avahi')
16 options=('!makeflags' '!lto')
17 source=("ftp://ftp-sop.inria.fr/indes/fp/Bigloo/${pkgname}-${_src_ver}.tar.gz"
19 sha256sums=('4ed71a86c6d762c35352e9f04871a11fe90fa5dbc974e728a86d9e8229d7c70f'
20 '27fa4d753fba40686d3f64b387bcd4a131342c38494ce01c407c47356c3755a8')
22 elisp_dir=/usr/share/emacs/site-lisp/bigloo
25 sed -i 's/$(GCLIB)/c/' "${srcdir}/${pkgname}-${_src_ver}/configure"
26 patch -d ${pkgname}-${_src_ver} -p1 < emacs-28.patch # Support emacs 28
30 cd "${srcdir}/${pkgname}-${_src_ver}"
31 ./configure --prefix=/usr \
32 --docdir=/usr/share/doc/bigloo \
33 --mandir=/usr/share/man \
34 --infodir=/usr/share/info \
35 --lispdir=${elisp_dir} \
41 --native-default-backend \
48 make build compile-bee
52 cd "${srcdir}/${pkgname}-${_src_ver}"
57 cd "${srcdir}/${pkgname}-${_src_ver}"
59 make DESTDIR="${pkgdir}" install install-bee
60 make -C manuals DESTDIR="${pkgdir}" install-bee
62 # Remove references to the build root
63 sed -e "s|^BOOTDIR=.*|BOOTDIR=/usr|g" \
64 -e "s|^BOOTBINDIR=.*|BOOTBINDIR=/usr/bin|g" \
65 -e "s|^BOOTLIBDIR=.*|BOOTLIBDIR=/usr/lib/bigloo/${_src_ver}|g" \
66 -e "s|^BGLBUILDBINDIR=.*|BGLBUILDBINDIR=/usr/bin|g" \
67 -e "s|^BGLBUILDLIBDIR=.*|BGLBUILDLIBDIR=/usr/lib/bigloo/${_src_ver}|g" \
68 -e "s|^\(BIGLOO=.*\)\.sh|\1|" \
69 -e "s|^\(BGL.*=.*\)\.sh|\1|" \
70 -i "${pkgdir}/usr/lib/bigloo/${_src_ver%-*}/Makefile.config"