PKGBUILD 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Maintainer (Arch:libffi): Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
  2. # Contributor (Arch:libffi): Stéphane Gaudreault <stephane@archlinux.org>
  3. # Contributor (Arch:libffi): Jan de Groot <jgc@archlinux.org>
  4. # Maintainer: Luke Shumaker <lukeshu@parabola.nu>
  5. _pkgname=libffi
  6. pkgname=libffi-static
  7. pkgver=3.2.1
  8. pkgrel=2.static2
  9. pkgdesc='Portable foreign function interface library'
  10. pkgdesc+=' (static libraries)'
  11. arch=('x86_64')
  12. arch+=('i686' 'armv7h')
  13. url='http://sourceware.org/libffi/'
  14. license=('MIT')
  15. depends=("libffi=$pkgver")
  16. options=('staticlibs')
  17. checkdepends=('dejagnu')
  18. source=(ftp://sourceware.org/pub/libffi/libffi-$pkgver.tar.gz)
  19. sha1sums=('280c265b789e041c02e5c97815793dfc283fb1e6')
  20. build() {
  21. cd $_pkgname-$pkgver
  22. ./configure --prefix=/usr --disable-static \
  23. --disable-shared --enable-static \
  24. --enable-pax_emutramp
  25. make
  26. }
  27. check() {
  28. make -C $_pkgname-$pkgver check
  29. }
  30. package() {
  31. cd $_pkgname-$pkgver
  32. make DESTDIR="$pkgdir" install
  33. install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  34. rm -vr -- \
  35. "$pkgdir/usr/lib"/libffi-*/ \
  36. "$pkgdir/usr/lib/pkgconfig/" \
  37. "$pkgdir/usr/share/info/" \
  38. "$pkgdir/usr/share/man/"
  39. }