[arch-commits] Commit in lib32-libelf/trunk (PKGBUILD)

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


    Date: Tuesday, April 26, 2022 @ 08:52:34
  Author: dvzrv
Revision: 1190942

upgpkg: lib32-libelf 0.187-1: Upgrade to 0.187.

Add debug package (for real).
Remove unneeded quotes and curly braces.
Do not pass failed tests by default (the build server environment has been fixed).

Modified:
  lib32-libelf/trunk/PKGBUILD

----------+
 PKGBUILD |   43 +++++++++++++++++++++++--------------------
 1 file changed, 23 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-26 08:48:54 UTC (rev 1190941)
+++ PKGBUILD	2022-04-26 08:52:34 UTC (rev 1190942)
@@ -4,21 +4,27 @@
 
 _name=elfutils
 pkgname=lib32-libelf
-pkgver=0.186
-pkgrel=3
+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-curl lib32-bzip2 lib32-gcc-libs lib32-xz lib32-zlib
-lib32-zstd "libelf=${pkgver}")
+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
-options=(debug)
-source=("https://sourceware.org/elfutils/ftp/${pkgver}/elfutils-${pkgver}.tar.bz2"{,.sig})
-options=(staticlibs)
-sha512sums=('c9180b27ec62935f18b9431268d176f6023d1bb938731d2af6e7626ae460af6608a70ba68483aa1ec7e6cb0fa0528b661ca8b68bc4f58ea8e18af527c5950c78'
+source=(https://sourceware.org/elfutils/ftp/$pkgver/elfutils-$pkgver.tar.bz2{,.sig})
+sha512sums=('a9b9e32b503b8b50a62d4e4001097ed2721d3475232a6380e6b9853bd1647aec016440c0ca7ceb950daf1144f8db9814ab43cf33cc0ebef7fc91e9e775c9e874'
             'SKIP')
-b2sums=('49573d0a1f3519eab81d1ba3e94354cbc0935a36a94a3fdb22fe223a47b78cca8fd6e322870b0e335a809529fa6f54180b13c67936dec0242123c54ba20c9fc9'
+b2sums=('00ba3efa689d137808f5f53ecda93fd006be0c18d690ce76616ed1dba442281098579fa4b9a9e91b8ba865a3de15968f0ae06703a7b50b15c48a4beb5c970a46'
         'SKIP')
 validpgpkeys=(
   '47CC0331081B8BC6D0FD4DA08370665B57816A6A' # Mark J. Wielaard <mark at klomp.org>
@@ -27,11 +33,11 @@
 
 prepare() {
   (
-  cd "${_name}-${pkgver}"
-  autoreconf -fiv
+    cd $_name-$pkgver
+    autoreconf -fiv
   )
 
-  cp -av "${_name}-${pkgver}" "${_name}-test-${pkgver}"
+  cp -av $_name-$pkgver $_name-test-$pkgver
 }
 
 build() {
@@ -42,7 +48,7 @@
   (
   # fat-lto-objects is required for non-mangled .a files in libelf
   CFLAGS+=" -ffat-lto-objects"
-  cd "${_name}-${pkgver}"
+  cd $_name-$pkgver
   ./configure --prefix=/usr \
     --sysconfdir=/etc \
     --libdir=/usr/lib32 \
@@ -54,7 +60,7 @@
   CFLAGS+=" -g"
   # fat-lto-objects is required for non-mangled .a files in libelf
   CFLAGS+=" -ffat-lto-objects"
-  cd "${_name}-test-${pkgver}"
+  cd $_name-test-$pkgver
   ./configure --prefix=/usr \
     --sysconfdir=/etc \
     --libdir=/usr/lib32 \
@@ -64,14 +70,11 @@
 }
 
 check() {
-  cd "${_name}-test-${pkgver}"
-  make check || printf "Fails in restrictive build environments: https://gitlab.archlinux.org/archlinux/infrastructure/-/issues/424\n"
+  make check -C $_name-test-$pkgver
 }
 
 package() {
-  cd "${_name}-${pkgver}"
-
-  make DESTDIR="${pkgdir}" install
+  make DESTDIR="$pkgdir" install -C $_name-$pkgver
   # remove anything that would conflict with elfutils and debuginfod
-  rm -rf "${pkgdir}/"{etc,usr/{bin,include,share}}
+  rm -rf "$pkgdir/"{etc,usr/{bin,include,share}}
 }



More information about the arch-commits mailing list