New package: libdwarf

This commit is contained in:
John Regan 2015-08-25 16:33:47 -04:00
parent 7bb5ee164f
commit 077f08c85b
3 changed files with 51 additions and 0 deletions

1
srcpkgs/libdwarf-devel Symbolic link
View file

@ -0,0 +1 @@
libdwarf

1
srcpkgs/libdwarf-docs Symbolic link
View file

@ -0,0 +1 @@
libdwarf

49
srcpkgs/libdwarf/template Normal file
View file

@ -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 <john@jrjrtech.com>"
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}
}
}