jobcore/libffi/PKGBUILD

60 lines
1.6 KiB
Bash
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
2022-09-20 23:38:34 +02:00
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:19:37 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
2022-09-20 23:38:34 +02:00
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libffi
2024-02-18 23:31:39 +01:00
pkgver=3.4.6
2022-09-20 23:38:34 +02:00
pkgrel=01
pkgdesc='Portable foreign programming language function interface library'
2022-03-20 13:19:37 +01:00
url='https://sourceware.org/libffi/'
depends=('glibc')
checkdepends=('dejagnu')
makedepends=('automake' 'autoconf')
provides=('libffi.so')
2022-09-20 23:38:34 +02:00
#options=(debug) ## uncomment this to produce the debug pkg
2022-03-20 13:19:37 +01:00
source=(https://github.com/libffi/libffi/releases/download/v${pkgver}/libffi-${pkgver}.tar.gz)
2022-03-25 01:47:52 +01:00
#prepare() {
# cd $pkgname-$pkgver
# autoreconf -fiv
#}
2022-03-20 13:19:37 +01:00
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
2024-02-18 23:31:39 +01:00
2022-03-20 13:19:37 +01:00
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
}
2024-02-18 23:31:39 +01:00
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:19:37 +01:00
license=('MIT')
2024-02-18 23:31:39 +01:00
sha256sums=(b0dea9df23c863a7a50e825440f3ebffabd65df1497108e5d437747843895a4e) # libffi-3.4.6.tar.gz
2022-09-20 23:38:34 +02:00
2024-02-18 23:31:39 +01:00
## 9d92418793f2fe4c8835011a522a7a4d74d895ba951239eff28fe5c369a49285 libffi-3.4.6-01-x86_64.pkg.tar.lz
2022-09-20 23:38:34 +02:00