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

David Runge dvzrv at archlinux.org
Wed May 26 18:35:27 UTC 2021


    Date: Wednesday, May 26, 2021 @ 18:35:26
  Author: dvzrv
Revision: 416485

upgpkg: elfutils 0.185-1: Upgrade to 0.185.

Split out debuginfod into its own package (debuginfod).

Modified:
  elfutils/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++++++++++++++++++++++++++-----
 1 file changed, 31 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-26 17:20:30 UTC (rev 416484)
+++ PKGBUILD	2021-05-26 18:35:26 UTC (rev 416485)
@@ -4,8 +4,8 @@
 # Contributor: Andrej Gelenberg <andrej.gelenberg at udo.edu>
 
 pkgbase=elfutils
-pkgname=('elfutils' 'libelf')
-pkgver=0.184
+pkgname=('debuginfod' 'elfutils' 'libelf')
+pkgver=0.185
 pkgrel=1
 pkgdesc='Handle ELF object files and DWARF debugging information'
 arch=('x86_64')
@@ -15,9 +15,9 @@
 'xz' 'zlib' 'zstd')
 options=('staticlibs')
 source=("https://sourceware.org/${pkgbase}/ftp/${pkgver}/${pkgbase}-${pkgver}.tar.bz2"{,.sig})
-sha512sums=('5920c354edd6b28bb7e713d674bf6f2221e8ee91b90d582de39b1f45446aea1e7e3d4b6671024c391675b5e7530fe952c1320d730bb625c02d4c647ceb938bc8'
+sha512sums=('34de0de1355b11740e036e0fc64f2fc063587c8eb121b19216ee5548d3f0f268d8fc3995176c47190466b9d881007cfa11a9d01e9a50e38af6119492bf8bb47f'
             'SKIP')
-b2sums=('8e45aa603a039fb128b96a1ffee4a0137fd1808d7087a2ddc8682a9bec1d65a56e6e6ad1419ac5e9f4490cc258c8ac0ee3e49775aab278efb1889bdceaf842bf'
+b2sums=('57cfa7e4060975c4bf6170dbd354687a19a92f7069c060db1ac2fa4da5a9d34e8bddd07c7ce376b5c28b5670ad5b8c1df795164cbcfb600a44cf1db60c20c4af'
         'SKIP')
 validpgpkeys=(
   '47CC0331081B8BC6D0FD4DA08370665B57816A6A'  # Mark J. Wielaard <mark at klomp.org>
@@ -52,14 +52,35 @@
 
   cd "$pkgbase-$pkgver"
   make DESTDIR="$pkgdir" install
-  # remove files provided by elfutils
+  # remove files provided by elfutils or debuginfod
   rm -rvf "${pkgdir}"{/etc,/usr/{bin,share}}
+  install -vDm 644 {AUTHORS,ChangeLog,NEWS,NOTES,README} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
 }
 
 package_elfutils() {
   pkgdesc+=" (utilities)"
+  depends=('gcc-libs' 'glibc' "libelf=${pkgver}-${pkgrel}")
+
+  cd "$pkgbase-$pkgver"
+  make DESTDIR="$pkgdir" install
+  install -vDm 644 {AUTHORS,ChangeLog,NEWS,NOTES,README} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+  # remove files provided by libelf
+  rm -rvf "${pkgdir}/usr/"{include,lib}
+  # remove files provided by debuginfod
+  rm -rvf "${pkgdir}/usr/bin/debuginfod"* \
+    "${pkgdir}/usr/share/man/man1/debuginfod"* \
+    "${pkgdir}/usr/share/man/man3/debuginfod"* \
+    "${pkgdir}/usr/share/man/man8/" \
+    "${pkgdir}/etc"
+}
+
+package_debuginfod() {
+  pkgdesc+=" (debuginfod)"
   depends=('gcc-libs' 'glibc' 'libarchive.so' "libelf=${pkgver}-${pkgrel}"
   'libmicrohttpd.so' 'sqlite')
+  optdepends=("elfutils=${pkgver}-${pkgrel}: for translations" )
 
   cd "$pkgbase-$pkgver"
   make DESTDIR="$pkgdir" install
@@ -67,4 +88,9 @@
     -t "${pkgdir}/usr/share/doc/${pkgname}"
   # remove files provided by libelf
   rm -rvf "${pkgdir}/usr/"{include,lib}
+  # remove files provided by elfutils
+  rm -rvf "${pkgdir}/usr/bin/eu-"* \
+    "${pkgdir}/usr/share/man/man1/eu-"* \
+    "${pkgdir}/usr/share/man/man3/elf_"* \
+    "${pkgdir}/usr/share/locale"
 }



More information about the arch-commits mailing list