Date: Monday, November 28, 2022 @ 00:40:09
Author: dvzrv
Revision: 1354160
archrelease: copy trunk to multilib-testing-x86_64
Added:
lib32-libelf/repos/multilib-testing-x86_64/
lib32-libelf/repos/multilib-testing-x86_64/PKGBUILD
(from rev 1354159, lib32-libelf/trunk/PKGBUILD)
lib32-libelf/repos/multilib-testing-x86_64/keys/
----------+
PKGBUILD | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 84 insertions(+)
Copied: lib32-libelf/repos/multilib-testing-x86_64/PKGBUILD (from rev 1354159,
lib32-libelf/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD (rev 0)
+++ multilib-testing-x86_64/PKGBUILD 2022-11-28 00:40:09 UTC (rev 1354160)
@@ -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.188
+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=('585551b2d937d19d1becfc2f28935db1dd1a3d25571a62f322b70ac8da98c1a741a55d070327705df6c3e2ee026652e0b9a3c733b050a0b0ec5f2fc75d5b74b5'
+ 'SKIP')
+b2sums=('6b0474f1436eaf6af73b735b9b2ddd5448ab9c03fbaa0be745a31c89ae8f15b0e21a651409c38643ca125794ce82c19d7b46db4a079f3e72cb919d643560e7a4'
+ '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}}
+}