upgpkg: maxima 5.46.0-9 (sbcl rebuild)
[arch-packages.git] / libffi / trunk / PKGBUILD
blob2ddeef749ab072bd298166c788dea84d82d08fe4
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: Stéphane Gaudreault <stephane@archlinux.org>
4 # Contributor: Jan de Groot <jgc@archlinux.org>
6 pkgname=libffi
7 pkgver=3.4.4
8 pkgrel=1
9 pkgdesc='Portable foreign function interface library'
10 arch=('x86_64')
11 url='https://sourceware.org/libffi/'
12 license=('MIT')
13 depends=('glibc')
14 checkdepends=('dejagnu')
15 provides=('libffi.so')
16 source=(https://github.com/libffi/libffi/releases/download/v$pkgver/libffi-$pkgver.tar.gz)
17 sha256sums=('d66c56ad259a82cf2a9dfc408b32bf5da52371500b84745f7fb8b645712df676')
18 b2sums=('189fe1ffe9507f204581b0ab09995dc7e7b761bb4eac7e338e9f5ff81431aebcef6c182c1839c9f9acb2706697a260c67e6d1351cf7e2aed7c4eb5d694f6f8fd')
20 build() {
21   cd $pkgname-$pkgver
22   # remove --disable-exec-static-tramp once ghc and gobject-introspection
23   # work fine with it enabled (https://github.com/libffi/libffi/pull/647)
24   ./configure \
25     --prefix=/usr \
26     --disable-static \
27     --disable-multi-os-directory \
28     --disable-exec-static-tramp \
29     --enable-pax_emutramp
30   make
33 check() {
34   make -C $pkgname-$pkgver check
37 package() {
38   cd $pkgname-$pkgver
39   make DESTDIR="$pkgdir" install
40   install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
41   install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
44 # vim:set ts=2 sw=2 et: