52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=libffi
|
|
pkgver=3.4.2
|
|
pkgrel=04
|
|
pkgdesc='Portable foreign function interface library'
|
|
arch=('x86_64')
|
|
url='https://sourceware.org/libffi/'
|
|
depends=('glibc')
|
|
checkdepends=('dejagnu')
|
|
makedepends=('automake' 'autoconf')
|
|
provides=('libffi.so')
|
|
source=(https://github.com/libffi/libffi/releases/download/v${pkgver}/libffi-${pkgver}.tar.gz)
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
# remove --disable-exec-static-tramp once ghc and gobject-introspection
|
|
# work fine with it enabled (https://github.com/libffi/libffi/pull/647)
|
|
./configure \
|
|
--prefix=/usr \
|
|
--disable-static \
|
|
--disable-multi-os-directory \
|
|
--disable-exec-static-tramp \
|
|
--enable-pax_emutramp
|
|
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
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('MIT')
|
|
|
|
sha256sums=(540fb721619a6aba3bdeef7d940d8e9e0e6d2c193595bc243241b77ff9e93620) # libffi-3.4.2.tar.gz
|