summaryrefslogtreecommitdiff
path: root/libre/libffi-static/PKGBUILD
blob: 81a4d6811488c4e531d3adb76c931e5b1fcb9815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer (Arch:libffi):  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor (Arch:libffi): Stéphane Gaudreault <stephane@archlinux.org>
# Contributor (Arch:libffi): Jan de Groot <jgc@archlinux.org>
# Maintainer: Luke Shumaker <lukeshu@parabola.nu>

_pkgname=libffi
pkgname=libffi-static
pkgver=3.2.1
pkgrel=2.static2
pkgdesc='Portable foreign function interface library'
pkgdesc+=' (static libraries)'
arch=('x86_64')
arch+=('i686' 'armv7h')
url='http://sourceware.org/libffi/'
license=('MIT')
depends=("libffi=$pkgver")
options=('staticlibs')
checkdepends=('dejagnu')
source=(ftp://sourceware.org/pub/libffi/libffi-$pkgver.tar.gz)
sha1sums=('280c265b789e041c02e5c97815793dfc283fb1e6')

build() {
  cd $_pkgname-$pkgver
  ./configure --prefix=/usr --disable-static \
    --disable-shared --enable-static \
    --enable-pax_emutramp
  make
}

check() {
  make -C $_pkgname-$pkgver check
}

package() {
  cd $_pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE

  rm -vr -- \
     "$pkgdir/usr/lib"/libffi-*/ \
     "$pkgdir/usr/lib/pkgconfig/" \
     "$pkgdir/usr/share/info/" \
     "$pkgdir/usr/share/man/"
}