# Contributor: David Huffman # Maintainer: David Huffman setvar pkgname = 'libdwarf' setvar pkgver = '20170709' setvar pkgrel = '0' setvar pkgdesc = ""Parsing library for DWARF2 and later debugging file format"" setvar url = ""http://www.prevanders.net/dwarf.html"" setvar arch = ""all"" setvar license = ""LGPL2+"" setvar makedepends = ""elfutils-dev"" setvar subpackages = ""$pkgname-dev dwarf-tools dwarf-tools-doc"" setvar source = ""http://www.prevanders.net/$pkgname-$pkgver.tar.gz"" setvar options = ""!check"" setvar builddir = ""$srcdir/dwarf-$pkgver"" proc build { cd $builddir ./configure --prefix=/usr --enable-shared || return 1 make && make -C dwarfgen || return 1 } proc package { local bindir="$pkgdir/usr/bin" local docdir="$pkgdir/usr/share/doc/dwarf-tools" local incdir="$pkgdir/usr/include/libdwarf" local libdir="$pkgdir/usr/lib" local man1dir="$pkgdir/usr/share/man/man1" mkdir -p $bindir $docdir $incdir $libdir $man1dir cd "$builddir/libdwarf" cp dwarf.h libdwarf.h $incdir cp libdwarf.a libdwarf.so $libdir cd "$builddir/dwarfdump" cp dwarfdump $bindir cp COPYING "$docdir/dwarfdump.COPYING" cp DWARFDUMPCOPYRIGHT GPL.txt $docdir cp dwarfdump.conf $libdir cp dwarfdump.1 $man1dir cd "$builddir/dwarfgen" cp dwarfgen $bindir cp COPYING "$docdir/dwarfgen.COPYING" cp dwarfgen.1 $man1dir } proc tools { setvar license = ""GPL2 BSD"" setvar pkgdesc = ""Tools for interacting with DWARF2 and later debugging files"" local bin="usr/bin" local lib="usr/lib" mkdir -p "$subpkgdir/$lib" mv "$pkgdir/$bin" "$subpkgdir/$bin" mv "$pkgdir/$lib/dwarfdump.conf" "$subpkgdir/$lib" } setvar sha512sums = ""afff6716ef1af5d8aae2b887f36b9a6547fb576770bc6f630b82725ed1e59cbd387779aa729bbd1a5ae026a25ac76aacf64b038cd898b2419a8676f9aa8c59f1 libdwarf-20170709.tar.gz""