Date: Friday, March 3, 2023 @ 22:03:19
  Author: dvzrv
Revision: 1411305

archrelease: copy trunk to multilib-staging-x86_64

Added:
  lib32-libelf/repos/multilib-staging-x86_64/
  lib32-libelf/repos/multilib-staging-x86_64/PKGBUILD
    (from rev 1411304, lib32-libelf/trunk/PKGBUILD)
  lib32-libelf/repos/multilib-staging-x86_64/keys/

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

Copied: lib32-libelf/repos/multilib-staging-x86_64/PKGBUILD (from rev 1411304, 
lib32-libelf/trunk/PKGBUILD)
===================================================================
--- multilib-staging-x86_64/PKGBUILD                            (rev 0)
+++ multilib-staging-x86_64/PKGBUILD    2023-03-03 22:03:19 UTC (rev 1411305)
@@ -0,0 +1,84 @@
+# Maintainer: David Runge <[email protected]>
+# Contributor: Stéphane Gaudreault <[email protected]>
+# Contributor: Andrej Gelenberg <[email protected]>
+
+_name=elfutils
+pkgname=lib32-libelf
+pkgver=0.189
+pkgrel=1
+pkgdesc="Handle ELF object files and DWARF debugging information (libraries) 
(32-bit)"
+arch=(x86_64)
+url="https://sourceware.org/elfutils/";
+license=(LGPL3 GPL3)
+depends=(
+  lib32-bzip2
+  lib32-curl
+  lib32-gcc-libs
+  lib32-xz
+  lib32-zlib
+  lib32-zstd
+  libelf=$pkgver
+)
+options=(staticlibs)
+# NOTE: the shared objects can not be added to provides as they are not 
versioned
+source=(https://sourceware.org/elfutils/ftp/$pkgver/elfutils-$pkgver.tar.bz2{,.sig})
+sha512sums=('93a877e34db93e5498581d0ab2d702b08c0d87e4cafd9cec9d6636dfa85a168095c305c11583a5b0fb79374dd93bc8d0e9ce6016e6c172764bcea12861605b71'
+            'SKIP')
+b2sums=('30596271e14cf3408326abc38a9775b849b8cb0ee119a5455df9434a7d3b9a57afb15e0236a179a26c7bd400d303749964c9d6350c419f747784fd99d12517e0'
+        'SKIP')
+validpgpkeys=(
+  '47CC0331081B8BC6D0FD4DA08370665B57816A6A' # Mark J. Wielaard 
<[email protected]>
+  'EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A' # Mark Wielaard <[email protected]>
+)
+
+prepare() {
+  # remove failing test due to missing glibc debug package during test: 
https://bugs.archlinux.org/task/74875
+  sed -e 's/run-backtrace-native.sh//g' -i $_name-$pkgver/tests/Makefile.am
+
+  (
+    cd $_name-$pkgver
+    autoreconf -fiv
+  )
+
+  cp -av $_name-$pkgver $_name-test-$pkgver
+}
+
+build() {
+  local configure_options=(
+    --prefix=/usr
+    --sysconfdir=/etc
+    --libdir=/usr/lib32
+    --disable-debuginfod
+  )
+
+  export CC="gcc -m32"
+  export CXX="g++ -m32"
+  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+  (
+    # fat-lto-objects is required for non-mangled .a files in libelf
+    CFLAGS+=" -ffat-lto-objects"
+    cd $_name-$pkgver
+    ./configure "${configure_options[@]}"
+    make
+  )
+  (
+    # debugging information is required for test-suite
+    CFLAGS+=" -g"
+    # fat-lto-objects is required for non-mangled .a files in libelf
+    CFLAGS+=" -ffat-lto-objects"
+    cd $_name-test-$pkgver
+    ./configure "${configure_options[@]}"
+    make
+  )
+}
+
+check() {
+  make check -C $_name-test-$pkgver
+}
+
+package() {
+  make DESTDIR="$pkgdir" install -C $_name-$pkgver
+  # remove anything that would conflict with elfutils and debuginfod
+  rm -rf "$pkgdir/"{etc,usr/{bin,include,share}}
+}

Reply via email to