[arch-commits] Commit in libffi/repos/staging-x86_64 (PKGBUILD PKGBUILD)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Sun Oct 10 00:52:04 UTC 2021
Date: Sunday, October 10, 2021 @ 00:52:04
Author: foutrelis
Revision: 425624
archrelease: copy trunk to staging-x86_64
Added:
libffi/repos/staging-x86_64/PKGBUILD
(from rev 425623, libffi/trunk/PKGBUILD)
Deleted:
libffi/repos/staging-x86_64/PKGBUILD
----------+
PKGBUILD | 106 +++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 61 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-10 00:51:58 UTC (rev 425623)
+++ PKGBUILD 2021-10-10 00:52:04 UTC (rev 425624)
@@ -1,45 +0,0 @@
-# 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=1
-pkgdesc='Portable foreign function interface library'
-arch=('x86_64')
-url='https://sourceware.org/libffi/'
-license=('MIT')
-depends=('glibc')
-checkdepends=('dejagnu')
-provides=('libffi.so')
-source=(https://github.com/libffi/libffi/releases/download/v${pkgver}/libffi-${pkgver}.tar.gz)
-sha256sums=('540fb721619a6aba3bdeef7d940d8e9e0e6d2c193595bc243241b77ff9e93620')
-b2sums=('a8137bc895b819f949fd7705e405be627219c6d1fdef280253330f7407d4a548bb057d7bb0e9225d1767d42f9bf5f0ab3c455db1c3470d7cc876bb7b7d55d308')
-
-prepare() {
- cd $pkgname-$pkgver
- autoreconf -fiv
-}
-
-build() {
- cd $pkgname-$pkgver
- ./configure \
- --prefix=/usr \
- --disable-static \
- --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: ts=2 sw=2 et:
Copied: libffi/repos/staging-x86_64/PKGBUILD (from rev 425623, libffi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-10-10 00:52:04 UTC (rev 425624)
@@ -0,0 +1,61 @@
+# 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=2
+pkgdesc='Portable foreign function interface library'
+arch=('x86_64')
+url='https://sourceware.org/libffi/'
+license=('MIT')
+depends=('glibc')
+checkdepends=('dejagnu')
+provides=('libffi.so')
+source=(https://github.com/libffi/libffi/releases/download/v$pkgver/libffi-$pkgver.tar.gz
+ https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz)
+sha256sums=('540fb721619a6aba3bdeef7d940d8e9e0e6d2c193595bc243241b77ff9e93620'
+ '72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056')
+b2sums=('a8137bc895b819f949fd7705e405be627219c6d1fdef280253330f7407d4a548bb057d7bb0e9225d1767d42f9bf5f0ab3c455db1c3470d7cc876bb7b7d55d308'
+ 'cddc40729a30a9bd34d675809f51f8d1b4ccaffa54bc6dd6f7e965f4e260edd34754719f9f6247c8957aeb7cf154d56ce1fe16a54c3f1ad39afbebdf41d23caa')
+
+build() {
+ # TODO: remove this block once the libffi 3.4 rebuilds are bootstrapped
+ pushd $pkgname-3.3
+ ./configure \
+ --prefix=/usr \
+ --disable-static \
+ --enable-pax_emutramp
+ make
+ popd
+
+ 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-exec-static-tramp \
+ --enable-pax_emutramp
+ make
+}
+
+check() {
+ make -C $pkgname-$pkgver check
+}
+
+package() {
+ # TODO: remove this block once the libffi 3.4 rebuilds are bootstrapped
+ pushd $pkgname-3.3
+ make DESTDIR="$srcdir"/fakeinstall install
+ install -Dt "$pkgdir"/usr/lib "$srcdir"/fakeinstall/usr/lib/libffi.so.7
+ popd
+
+ 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: ts=2 sw=2 et:
More information about the arch-commits
mailing list