2024-02-18 23:31:39 +01:00
|
|
|
# Maintainer: David Runge <dvzrv@archlinux.org>
|
2022-03-20 13:19:37 +01:00
|
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
|
|
|
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
|
|
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=libffi
|
2024-02-18 23:31:39 +01:00
|
|
|
pkgver=3.4.6
|
2022-09-20 23:38:34 +02:00
|
|
|
pkgrel=1
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc='Portable foreign function interface library'
|
2024-02-18 23:31:39 +01:00
|
|
|
arch=(x86_64)
|
2022-03-20 13:19:37 +01:00
|
|
|
url='https://sourceware.org/libffi/'
|
2024-02-18 23:31:39 +01:00
|
|
|
license=(MIT)
|
|
|
|
depends=(glibc)
|
|
|
|
checkdepends=(dejagnu)
|
|
|
|
provides=(libffi.so)
|
2022-03-25 01:47:52 +01:00
|
|
|
source=(https://github.com/libffi/libffi/releases/download/v$pkgver/libffi-$pkgver.tar.gz)
|
2024-02-18 23:31:39 +01:00
|
|
|
sha256sums=('b0dea9df23c863a7a50e825440f3ebffabd65df1497108e5d437747843895a4e')
|
|
|
|
b2sums=('af8402a09bdbd59b4e9400d2d71bd5ce98f6f1d981d35d1ab40d77a831b13b32c5bd34ca54ff75999e39f0d8a9c066381fae7a8d6c5216d955e064f929f08b88')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
build() {
|
2024-02-18 23:31:39 +01:00
|
|
|
local configure_options=(
|
|
|
|
# remove --disable-exec-static-tramp once ghc and gobject-introspection
|
|
|
|
# work fine with it enabled (https://github.com/libffi/libffi/pull/647)
|
|
|
|
--disable-exec-static-tramp
|
|
|
|
--disable-multi-os-directory
|
|
|
|
--disable-static
|
2022-03-20 13:19:37 +01:00
|
|
|
--enable-pax_emutramp
|
2024-02-18 23:31:39 +01:00
|
|
|
--prefix=/usr
|
|
|
|
)
|
|
|
|
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
./configure "${configure_options[@]}"
|
2022-03-20 13:19:37 +01:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
make -C $pkgname-$pkgver check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
|
|
|
install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
|
|
|
|
}
|
|
|
|
|
2022-09-20 23:38:34 +02:00
|
|
|
# vim:set ts=2 sw=2 et:
|