Date: Monday, October 24, 2022 @ 08:18:43
  Author: dvzrv
Revision: 1334500

archrelease: copy trunk to multilib-testing-x86_64

Added:
  lib32-libffi/repos/multilib-testing-x86_64/
  lib32-libffi/repos/multilib-testing-x86_64/PKGBUILD
    (from rev 1334499, lib32-libffi/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: lib32-libffi/repos/multilib-testing-x86_64/PKGBUILD (from rev 1334499, 
lib32-libffi/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD                            (rev 0)
+++ multilib-testing-x86_64/PKGBUILD    2022-10-24 08:18:43 UTC (rev 1334500)
@@ -0,0 +1,51 @@
+# Maintainer: David Runge <[email protected]>
+# Contributor: Jan de Groot <[email protected]>
+
+pkgname=lib32-libffi
+pkgver=3.4.4
+pkgrel=1
+pkgdesc="Portable foreign function interface library (32-bit)"
+arch=(x86_64)
+url=https://sourceware.org/libffi/
+license=(MIT)
+depends=(lib32-glibc libffi=$pkgver)
+checkdepends=(dejagnu)
+provides=(libffi.so)
+options=(debug)
+source=(https://github.com/libffi/libffi/releases/download/v$pkgver/libffi-$pkgver.tar.gz)
+sha256sums=('d66c56ad259a82cf2a9dfc408b32bf5da52371500b84745f7fb8b645712df676')
+b2sums=('189fe1ffe9507f204581b0ab09995dc7e7b761bb4eac7e338e9f5ff81431aebcef6c182c1839c9f9acb2706697a260c67e6d1351cf7e2aed7c4eb5d694f6f8fd')
+
+build() {
+  cd libffi-$pkgver
+
+  export CC="gcc -m32"
+
+  ./configure \
+    --build=i686-pc-linux-gnu \
+    --prefix=/usr \
+    --libdir=/usr/lib32 \
+    --disable-static \
+    --disable-multi-os-directory \
+    --disable-exec-static-tramp \
+    --enable-pax_emutramp
+  make
+}
+
+check() {
+  # not sure what's causing these test failures; ignore them for now
+  #   FAIL: libffi.closures/unwindtest.cc -W -Wall -Wno-psabi -O0 execution 
test
+  #   FAIL: libffi.closures/unwindtest.cc -W -Wall -Wno-psabi -O2 execution 
test
+  #   FAIL: libffi.closures/unwindtest_ffi_call.cc -W -Wall -Wno-psabi -O0 
execution test
+  #   FAIL: libffi.closures/unwindtest_ffi_call.cc -W -Wall -Wno-psabi -O2 
execution test
+  make -C libffi-$pkgver check || :
+}
+
+package() {
+  cd libffi-$pkgver
+  make DESTDIR="$pkgdir" install
+  rm -r "$pkgdir"/usr/{include,share}
+  install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to