[arch-commits] Commit in libffi/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Jan Steffens
heftig at gemini.archlinux.org
Fri Apr 1 16:08:14 UTC 2022
Date: Friday, April 1, 2022 @ 16:08:14
Author: heftig
Revision: 441102
archrelease: copy trunk to testing-x86_64
Added:
libffi/repos/testing-x86_64/
libffi/repos/testing-x86_64/PKGBUILD
(from rev 441101, libffi/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: libffi/repos/testing-x86_64/PKGBUILD (from rev 441101, libffi/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2022-04-01 16:08:14 UTC (rev 441102)
@@ -0,0 +1,45 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgname=libffi
+pkgver=3.4.2
+pkgrel=5
+pkgdesc='Portable foreign function interface library'
+arch=('x86_64')
+url='https://sourceware.org/libffi/'
+license=('MIT')
+depends=('glibc')
+checkdepends=('dejagnu')
+provides=('libffi.so')
+options=('debug')
+source=(https://github.com/libffi/libffi/releases/download/v$pkgver/libffi-$pkgver.tar.gz)
+sha256sums=('540fb721619a6aba3bdeef7d940d8e9e0e6d2c193595bc243241b77ff9e93620')
+b2sums=('a8137bc895b819f949fd7705e405be627219c6d1fdef280253330f7407d4a548bb057d7bb0e9225d1767d42f9bf5f0ab3c455db1c3470d7cc876bb7b7d55d308')
+
+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
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list