diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-07-29 19:41:35 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-07-29 19:41:35 -0300 |
commit | f751e2484aa73e103734befb8e53f9c6b3194439 (patch) | |
tree | d85c59d15777c3a00bc8fad46b7ea6367f2abdc4 /~lukeshu/libdwarf/PKGBUILD | |
parent | ca0322ce24ea980dc03e134506cc2715fed560f1 (diff) | |
parent | 756056e5cbfe51dbdf270f88a8fe2e1d3fbba804 (diff) | |
download | abslibre-f751e2484aa73e103734befb8e53f9c6b3194439.tar.gz abslibre-f751e2484aa73e103734befb8e53f9c6b3194439.tar.bz2 abslibre-f751e2484aa73e103734befb8e53f9c6b3194439.zip |
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Diffstat (limited to '~lukeshu/libdwarf/PKGBUILD')
-rw-r--r-- | ~lukeshu/libdwarf/PKGBUILD | 44 |
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') |