OSDN Git Service

upg
[joborun/jobcore.git] / libffi / PKGBUILD
1 #!/usr/bin/bash
2 # JOBoRun               : Jwm OpenBox Obarun RUNit
3 # Maintainer            : Joe Bo Run <joborun@disroot.org>
4 # PkgSource             : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
5 #-----------------------------------------| DESCRIPTION |---------------------------------------
6
7 pkgname=libffi
8 pkgver=3.4.2
9 pkgrel=04
10 pkgdesc='Portable foreign function interface library'
11 arch=('x86_64')
12 url='https://sourceware.org/libffi/'
13 depends=('glibc')
14 checkdepends=('dejagnu')
15 makedepends=('automake' 'autoconf')
16 provides=('libffi.so')
17 source=(https://github.com/libffi/libffi/releases/download/v${pkgver}/libffi-${pkgver}.tar.gz)
18
19 prepare() {
20   cd $pkgname-$pkgver
21   autoreconf -fiv
22 }
23
24 build() {
25   cd $pkgname-$pkgver
26   # remove --disable-exec-static-tramp once ghc and gobject-introspection
27   # work fine with it enabled (https://github.com/libffi/libffi/pull/647)
28   ./configure \
29     --prefix=/usr \
30     --disable-static \
31     --disable-multi-os-directory \
32     --disable-exec-static-tramp \
33     --enable-pax_emutramp
34   make
35 }
36
37 check() {
38   make -C $pkgname-$pkgver check
39 }
40
41 package() {
42   cd $pkgname-$pkgver
43   make DESTDIR="$pkgdir" install
44   install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
45   install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
46 }
47
48 #---- license gpg-key sha256sums ----
49
50 license=('MIT')
51
52 sha256sums=(540fb721619a6aba3bdeef7d940d8e9e0e6d2c193595bc243241b77ff9e93620) #  libffi-3.4.2.tar.gz