updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / libdwarf / PKGBUILD
blob6944714e2f4467d4b21f2b1137a6bbeadb6b21f0
1 # Maintainer: Marti Raudsepp <marti@juffo.org>
3 pkgname=libdwarf
4 pkgver=20111030
5 pkgrel=1
6 pkgdesc="Static library for handling DWARF Debugging Information Format"
7 arch=(i686 x86_64)
8 license=('GPL' 'LGPL')
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)
14 build() {
15   cd $srcdir/dwarf-$pkgver/libdwarf
16   ./configure
17   make
19   # dwarfdump
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
23   make -j1
26 package() {
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
38   # dwarfdump
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')