1 # Maintainer: Marti Raudsepp <marti@juffo.org>
6 pkgdesc="Static library for handling DWARF Debugging Information Format"
9 url="http://reality.sgiweb.org/davea/dwarf.html"
10 depends=('elfutils' 'gcc-libs')
11 makedepends=('libelf')
12 source=(http://reality.sgiweb.org/davea/$pkgname-$pkgver.tar.gz)
15 cd $srcdir/dwarf-$pkgver/libdwarf
20 cd $srcdir/dwarf-$pkgver/dwarfdump2
21 ./configure --prefix=/usr CFLAGS=-I../libdwarf CXXFLAGS=-I../libdwarf LDFLAGS=-L../libdwarf
22 # disable parallelization; -j5 build fails ~20% of the time on my machine
27 cd $srcdir/dwarf-$pkgver/libdwarf
29 install -d $pkgdir/usr/lib
30 install -m 644 libdwarf.a $pkgdir/usr/lib
32 install -d $pkgdir/usr/include/libdwarf
33 install dwarf.h libdwarf.h $pkgdir/usr/include/libdwarf
35 install -dm 755 $pkgdir/usr/share/doc/$pkgname
36 install README NEWS *.pdf $pkgdir/usr/share/doc/$pkgname
39 cd $srcdir/dwarf-$pkgver/dwarfdump2
40 install -Dm755 dwarfdump $pkgdir/usr/bin/dwarfdump
41 install -Dm644 dwarfdump.1 $pkgdir/usr/share/man/man1/dwarfdump.1
42 install -Dm644 dwarfdump.conf $pkgdir/usr/lib/dwarfdump.conf
44 md5sums=('c4eee0c099d19c84f24e0d1634f0d8e7')