1 # Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
2 # Contributor: Michael Baehr <usemike@spamblocked.com>
7 pkgdesc="C library for implementing foreign function calls in embedded interpreters"
9 url="https://www.gnu.org/software/libffcall/"
12 options=('!makeflags' 'staticlibs')
13 source=(https://ftp.gnu.org/gnu/libffcall/libffcall-${pkgver}.tar.gz)
14 sha256sums=('8ef69921dbdc06bc5bb90513622637a7b83a71f31f5ba377be9d8fd8f57912c2')
17 cd "${srcdir}/lib${pkgname}-${pkgver}"
18 [ "$CARCH" = "x86_64" ] && CONFIGFLAG="--with-pic"
19 CFLAGS+=" -ffat-lto-objects" \
20 ./configure --prefix=/usr --mandir=/usr/share/man $CONFIGFLAG
25 cd "${srcdir}/lib${pkgname}-${pkgver}"
30 cd "${srcdir}/lib${pkgname}-${pkgver}"
31 install -d "${pkgdir}"/usr/share/{man,doc/ffcall}
32 make DESTDIR="${pkgdir}" htmldir=/usr/share/doc/ffcall install