diff options
author | André Klitzing <aklitzing@gmail.com> | 2018-05-18 11:51:33 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-07-16 12:23:26 +0000 |
commit | 81f614634df220f2f45efbdefd4efe1c47360891 (patch) | |
tree | c3185aedd00d7e25085d8b5e45c76d9d24f53cb9 /community/libdwarf | |
parent | f1f91075cc750bab1dc8adade121d76d71447a51 (diff) | |
download | aports-81f614634df220f2f45efbdefd4efe1c47360891.tar.bz2 aports-81f614634df220f2f45efbdefd4efe1c47360891.tar.xz |
community/libdwarf: moved from testing
Diffstat (limited to 'community/libdwarf')
-rw-r--r-- | community/libdwarf/APKBUILD | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/community/libdwarf/APKBUILD b/community/libdwarf/APKBUILD new file mode 100644 index 0000000000..4a33a0b8e5 --- /dev/null +++ b/community/libdwarf/APKBUILD @@ -0,0 +1,59 @@ +# Contributor: David Huffman <storedbox@outlook.com> +# Maintainer: David Huffman <storedbox@outlook.com> +pkgname=libdwarf +pkgver=20180129 +pkgrel=0 +pkgdesc="Parsing library for DWARF2 and later debugging file format" +url="http://www.prevanders.net/dwarf.html" +arch="all" +license="LGPL-2.0-or-later" +makedepends="elfutils-dev" +subpackages="$pkgname-dev dwarf-tools dwarf-tools-doc" +source="http://www.prevanders.net/$pkgname-$pkgver.tar.gz" +options="!check" +builddir="$srcdir/dwarf-$pkgver" + +build() { + cd "$builddir" + ./configure --prefix=/usr --enable-shared + make && make -C dwarfgen +} + +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" +} + +tools() { + license="GPL2 BSD" + 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" +} + +sha512sums="02f8024bb9959c91a1fe322459f7587a589d0965956d643921a173e6f9e0a184db7aef66f0fd2548d6695be7f9ee368f1cc8940cea4ddda01ff99d28bbf1fe58 libdwarf-20180129.tar.gz" |