archrelease: copy trunk to extra-x86_64
[arch-packages.git] / ffcall / trunk / PKGBUILD
blob52d086f3cecf5122264406d0391d117490d09da3
1 # Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
2 # Contributor: Michael Baehr <usemike@spamblocked.com>
4 pkgname=ffcall
5 pkgver=2.4
6 pkgrel=2
7 pkgdesc="C library for implementing foreign function calls in embedded interpreters"
8 arch=('x86_64')
9 url="https://www.gnu.org/software/libffcall/"
10 license=('GPL2')
11 depends=('glibc')
12 options=('!makeflags' 'staticlibs')
13 source=(https://ftp.gnu.org/gnu/libffcall/libffcall-${pkgver}.tar.gz)
14 sha256sums=('8ef69921dbdc06bc5bb90513622637a7b83a71f31f5ba377be9d8fd8f57912c2')
16 build() {
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
21   make
24 check() {
25   cd "${srcdir}/lib${pkgname}-${pkgver}"
26   make check
29 package() {
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