summaryrefslogtreecommitdiff
path: root/~lukeshu
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-07-08 04:05:26 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-07-08 04:05:26 -0400
commitf221752c71764a68e3d5d2525ee067c7536d3705 (patch)
tree6e7f62655d6ed6ce00bea38859787682815205cc /~lukeshu
parent44fb7936931db66f6ba7c46f73ebb29d2725fe58 (diff)
downloadabslibre-f221752c71764a68e3d5d2525ee067c7536d3705.tar.gz
abslibre-f221752c71764a68e3d5d2525ee067c7536d3705.tar.bz2
abslibre-f221752c71764a68e3d5d2525ee067c7536d3705.zip
add ~lukeshu/libdwarf from AUR
Diffstat (limited to '~lukeshu')
-rw-r--r--~lukeshu/libdwarf/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/~lukeshu/libdwarf/PKGBUILD b/~lukeshu/libdwarf/PKGBUILD
new file mode 100644
index 000000000..591b92633
--- /dev/null
+++ b/~lukeshu/libdwarf/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Marti Raudsepp <marti@juffo.org>
+
+pkgname=libdwarf
+pkgver=20111214
+pkgrel=1
+pkgdesc="Static library for handling DWARF Debugging Information Format"
+arch=(i686 x86_64)
+license=('GPL' 'LGPL')
+url="http://reality.sgiweb.org/davea/dwarf.html"
+depends=('elfutils' 'gcc-libs')
+makedepends=('libelf')
+source=(http://reality.sgiweb.org/davea/$pkgname-$pkgver.tar.gz)
+
+build() {
+ cd $srcdir/dwarf-$pkgver/libdwarf
+ ./configure
+ make
+
+ # dwarfdump
+ cd $srcdir/dwarf-$pkgver/dwarfdump2
+ ./configure --prefix=/usr CFLAGS=-I../libdwarf CXXFLAGS=-I../libdwarf LDFLAGS=-L../libdwarf
+ # disable parallelization; -j5 build fails ~20% of the time on my machine
+ make -j1
+}
+
+package() {
+ cd $srcdir/dwarf-$pkgver/libdwarf
+
+ install -d $pkgdir/usr/lib
+ install -m 644 libdwarf.a $pkgdir/usr/lib
+
+ install -d $pkgdir/usr/include/libdwarf
+ install dwarf.h libdwarf.h $pkgdir/usr/include/libdwarf
+
+ install -dm 755 $pkgdir/usr/share/doc/$pkgname
+ install README NEWS *.pdf $pkgdir/usr/share/doc/$pkgname
+
+ # dwarfdump
+ cd $srcdir/dwarf-$pkgver/dwarfdump2
+ 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
+}
+md5sums=('573b49b94e38a0e65ff337768f003d33')