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

Massimiliano Torromeo mtorromeo at archlinux.org
Mon Oct 1 06:15:39 UTC 2018


    Date: Monday, October 1, 2018 @ 06:15:39
  Author: mtorromeo
Revision: 388728

upgpkg: libdwarf 20180809-1
slightly different directory layout due to the use of the now functioning "make install"

Modified:
  libdwarf/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++-------------------
 1 file changed, 12 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-01 04:37:23 UTC (rev 388727)
+++ PKGBUILD	2018-10-01 06:15:39 UTC (rev 388728)
@@ -3,7 +3,7 @@
 # Contributor: Marti Raudsepp <marti at juffo.org>
 
 pkgname=libdwarf
-pkgver=20180527
+pkgver=20180809
 pkgrel=1
 pkgdesc="A library for handling DWARF Debugging Information Format"
 arch=(x86_64)
@@ -12,30 +12,23 @@
 depends=('elfutils')
 options+=('staticlibs')
 source=(https://www.prevanders.net/libdwarf-$pkgver.tar.gz)
-sha256sums=('47e014211f3cfef54a78e8f6dea0b211c4825724871361adf39d9706eb9b0f1f')
+sha512sums=('3c1a97e5b0bae0f18d02402c7b67b1e74aacd26b68b738afe5be8e446bdbdd9b1189658779b8c65cddba40dbd7848d40510c03eec258708956209b2d76f5dd66')
 
 build() {
-  cd "$srcdir"/dwarf-$pkgver
+  cd "$srcdir"/libdwarf-$pkgver
   ./configure --prefix=/usr --enable-shared
-  make basic
+  make
 }
 
+check() {
+  cd "$srcdir"/libdwarf-$pkgver
+  make check
+}
+
 package() {
-  cd "$srcdir"/dwarf-$pkgver/libdwarf
+  cd "$srcdir"/libdwarf-$pkgver
+  make DESTDIR="$pkgdir" install
 
-  install -dm755 "$pkgdir"/usr/lib
-  install -m644 libdwarf.{a,so.1} "$pkgdir"/usr/lib/
-  ln -s libdwarf.so.1 "$pkgdir"/usr/lib/libdwarf.so
-
-  install -dm755 "$pkgdir"/usr/include/libdwarf
-  install -m644 dwarf.h libdwarf.h "$pkgdir"/usr/include/libdwarf/
-
   install -dm755 "$pkgdir"/usr/share/doc/$pkgname
-  install -m644 README NEWS *.pdf "$pkgdir"/usr/share/doc/$pkgname/
-
-  # dwarfdump
-  cd "$srcdir"/dwarf-$pkgver/dwarfdump
-  install -Dm755 dwarfdump "$pkgdir"/usr/bin/dwarfdump
-  install -Dm644 dwarfdump.1 "$pkgdir"/usr/share/man/man1/dwarfdump.1
-  install -Dm644 dwarfdump.conf "$pkgdir"/usr/lib/dwarfdump.conf
+  install -m644 README NEWS "$pkgdir"/usr/share/doc/$pkgname/
 }



More information about the arch-commits mailing list