PKGBUILDs/extra/ffcall/PKGBUILD

37 lines
1.1 KiB
Bash
Raw Normal View History

2018-04-11 00:40:00 +00:00
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
# Contributor: Michael Baehr <usemike@spamblocked.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - configure v7/v8 with --with-pic
pkgname=ffcall
2021-07-16 18:24:55 +00:00
pkgver=2.4
2022-04-24 16:42:41 +00:00
pkgrel=2
2018-04-11 00:40:00 +00:00
pkgdesc="C library for implementing foreign function calls in embedded interpreters"
2018-11-13 19:33:55 +00:00
arch=('x86_64')
2019-06-01 16:30:57 +00:00
url="https://www.gnu.org/software/libffcall/"
2018-04-11 00:40:00 +00:00
license=('GPL2')
2022-04-24 16:42:41 +00:00
depends=('glibc')
2018-04-11 00:40:00 +00:00
options=('!makeflags' 'staticlibs')
2019-06-01 16:30:57 +00:00
source=(https://ftp.gnu.org/gnu/libffcall/libffcall-${pkgver}.tar.gz)
2021-07-16 18:24:55 +00:00
sha256sums=('8ef69921dbdc06bc5bb90513622637a7b83a71f31f5ba377be9d8fd8f57912c2')
2018-04-11 00:40:00 +00:00
build() {
cd "${srcdir}/lib${pkgname}-${pkgver}"
[ "$CARCH" = "x86_64" -o "$CARCH" = "aarch64" -o "$CARCH" = "armv7h" ] && CONFIGFLAG="--with-pic"
2022-04-24 16:42:41 +00:00
CFLAGS+=" -ffat-lto-objects" \
2018-04-11 00:40:00 +00:00
./configure --prefix=/usr --mandir=/usr/share/man $CONFIGFLAG
make
}
check() {
cd "${srcdir}/lib${pkgname}-${pkgver}"
make check
}
package() {
cd "${srcdir}/lib${pkgname}-${pkgver}"
install -d "${pkgdir}"/usr/share/{man,doc/ffcall}
make DESTDIR="${pkgdir}" htmldir=/usr/share/doc/ffcall install
}