# Contributor: Jürgen Hötzel # Contributor: John Proctor # Contributor: Kevin Piche # Maintainer: Stefan Husmann pkgname=bigloo-devel pkgver=4.5b pkgrel=16 epoch=1 _suffix=unstable pkgdesc="Fast scheme compiler" arch=('x86_64') url="https://www-sop.inria.fr/mimosa/fp/Bigloo/" license=('GPL' 'LGPL') depends=('gmp' 'openssl' 'libunistring' 'libnsl' 'gc' 'libuv' 'libpulse' 'mpg123' 'avahi' 'sqlite' 'gstreamer') makedepends=('java-environment' 'emacs' 'zip' 'sqlite' 'alsa-lib' 'flac' 'avahi' 'chrpath' 'tar') optdepends=('emacs' 'zip' 'sqlite' 'alsa-lib' 'flac' 'avahi') options=('!makeflags' 'staticlibs') conflicts=('bigloo') provides=("bigloo=$pkgver") source=(ftp://ftp-sop.inria.fr/indes/fp/Bigloo/${pkgname%-devel}-${_suffix}.tar.gz bigloo-emacs.patch) sha256sums=('543ec5155765315131469100e9971205e4caf86d272b3eeeceb2e666b119fbf9' '80356c27b58a302775f75e848a89ab2d588796a548f4ce7a20df048e215deab0') prepare() { patch -p0 -d "${srcdir}/${pkgname%-devel}-$_suffix" -i "${srcdir}/bigloo-emacs.patch" } build() { cd ${pkgname%-devel}-$_suffix ./configure --prefix=/usr \ --docdir=/usr/share/doc/bigloo \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --lispdir=${elisp_dir} \ --coflags="$CFLAGS" \ --cpicflags="-fPIC" \ --customgc=no \ --customgmp=no \ --customlibuv=no \ --customunistring=no \ --jvm=no \ --native-default-backend \ --enable-avahi \ --enable-flac \ --enable-sqlite \ --enable-ssl \ --enable-gstreamer \ --bee=full \ --disable-mqtt \ --no-ldpreload EXTRALIBS="-ldl -lresolv -lunistring -lpcre -lgmp -lm -lc" make build compile-bee } check() { cd ${pkgname%-devel}-$_suffix make test } package() { cd ${pkgname%-devel}-$_suffix make DESTDIR="${pkgdir}" install install-bee make -C manuals DESTDIR="${pkgdir}" install-bee rm "${pkgdir}"/usr/bin/{bglafile,bigloo}.sh }