From 077f08c85bdd30430e8ebc935aaa920023282d4d Mon Sep 17 00:00:00 2001 From: John Regan Date: Tue, 25 Aug 2015 16:33:47 -0400 Subject: [PATCH] New package: libdwarf --- srcpkgs/libdwarf-devel | 1 + srcpkgs/libdwarf-docs | 1 + srcpkgs/libdwarf/template | 49 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 120000 srcpkgs/libdwarf-devel create mode 120000 srcpkgs/libdwarf-docs create mode 100644 srcpkgs/libdwarf/template diff --git a/srcpkgs/libdwarf-devel b/srcpkgs/libdwarf-devel new file mode 120000 index 00000000000..b260742fd96 --- /dev/null +++ b/srcpkgs/libdwarf-devel @@ -0,0 +1 @@ +libdwarf \ No newline at end of file diff --git a/srcpkgs/libdwarf-docs b/srcpkgs/libdwarf-docs new file mode 120000 index 00000000000..b260742fd96 --- /dev/null +++ b/srcpkgs/libdwarf-docs @@ -0,0 +1 @@ +libdwarf \ No newline at end of file diff --git a/srcpkgs/libdwarf/template b/srcpkgs/libdwarf/template new file mode 100644 index 00000000000..033c233a991 --- /dev/null +++ b/srcpkgs/libdwarf/template @@ -0,0 +1,49 @@ +# Template build file for 'libdwarf' +pkgname=libdwarf +version=20150507 +revision=1 +build_style=configure +configure_args="--prefix=/usr --enable-shared" +short_desc="DWARF Debugging Information Format Library" +maintainer="John Regan " +license="GPL-2, LGPL-2.1" +makedepends="elfutils-devel" +homepage="http://www.prevanders.net/dwarf.html" +distfiles="http://prevanders.net/${pkgname}-${version}.tar.gz" +checksum="29aa8d07db659d7d7af7079854cf42c09bf74d303942159cbfee82d655549870" +wrksrc="dwarf-${version}" +build_wrksrc="libdwarf" +nocross="yes" +# XXX need to fix cross-compile + +export CFLAGS="$CFLAGS -D_GNU_SOURCE" + +do_build() { + make +} + +do_install() { + install -dm755 $DESTDIR/usr/lib + install -m644 libdwarf.so $DESTDIR/usr/lib/ +} + +libdwarf-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + install -dm755 $PKGDESTDIR/usr/lib + install -m644 libdwarf.a $PKGDESTDIR/usr/lib + + install -dm755 $PKGDESTDIR/usr/include/libdwarf + install -m644 libdwarf.h $PKGDESTDIR/usr/include/libdwarf/ + install -m644 dwarf.h $PKGDESTDIR/usr/include/libdwarf/ + } +} + +libdwarf-docs_package() { + short_desc+=" - documentation" + pkg_install() { + install -dm755 $PKGDESTDIR/usr/share/doc/${pkgname} + install -m644 README NEWS *.pdf $PKGDESTDIR/usr/share/doc/${pkgname} + } +}