[arch-commits] Commit in lib32-libelf/repos (2 files)

David Runge dvzrv at gemini.archlinux.org
Tue Apr 26 08:52:45 UTC 2022


    Date: Tuesday, April 26, 2022 @ 08:52:45
  Author: dvzrv
Revision: 1190943

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 1190942, lib32-libelf/trunk/PKGBUILD)

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

Copied: lib32-libelf/repos/multilib-staging-x86_64/PKGBUILD (from rev 1190942, lib32-libelf/trunk/PKGBUILD)
===================================================================
--- multilib-staging-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-staging-x86_64/PKGBUILD	2022-04-26 08:52:45 UTC (rev 1190943)
@@ -0,0 +1,80 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Andrej Gelenberg <andrej.gelenberg at udo.edu>
+
+_name=elfutils
+pkgname=lib32-libelf
+pkgver=0.187
+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=(debug 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=('a9b9e32b503b8b50a62d4e4001097ed2721d3475232a6380e6b9853bd1647aec016440c0ca7ceb950daf1144f8db9814ab43cf33cc0ebef7fc91e9e775c9e874'
+            'SKIP')
+b2sums=('00ba3efa689d137808f5f53ecda93fd006be0c18d690ce76616ed1dba442281098579fa4b9a9e91b8ba865a3de15968f0ae06703a7b50b15c48a4beb5c970a46'
+        'SKIP')
+validpgpkeys=(
+  '47CC0331081B8BC6D0FD4DA08370665B57816A6A' # Mark J. Wielaard <mark at klomp.org>
+  'EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A' # Mark Wielaard <mjw at gnu.org>
+)
+
+prepare() {
+  (
+    cd $_name-$pkgver
+    autoreconf -fiv
+  )
+
+  cp -av $_name-$pkgver $_name-test-$pkgver
+}
+
+build() {
+  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 --prefix=/usr \
+    --sysconfdir=/etc \
+    --libdir=/usr/lib32 \
+    --disable-debuginfod
+  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 --prefix=/usr \
+    --sysconfdir=/etc \
+    --libdir=/usr/lib32 \
+    --disable-debuginfod
+  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}}
+}



More information about the arch-commits mailing list