void-packages/srcpkgs/libdwarf/template
2016-06-23 10:39:12 +02:00

43 lines
1.3 KiB
Bash

# Template build file for 'libdwarf'
pkgname=libdwarf
version=20160613
revision=1
build_style=gnu-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=2cd47883a57dd89cb6d32ac36ef14c2631719a4eb2e6e2f743053651416802bb
wrksrc="dwarf-${version}"
build_wrksrc="libdwarf"
nocross="yes"
# XXX need to fix cross-compile
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-doc_package() {
short_desc+=" - documentation"
pkg_install() {
install -dm755 $PKGDESTDIR/usr/share/doc/${pkgname}
install -m644 README NEWS *.pdf $PKGDESTDIR/usr/share/doc/${pkgname}
}
}