2015-08-25 22:33:47 +02:00
|
|
|
# Template build file for 'libdwarf'
|
|
|
|
pkgname=libdwarf
|
2016-05-08 06:34:15 +02:00
|
|
|
version=20160507
|
2016-04-28 11:15:17 +02:00
|
|
|
revision=1
|
2016-05-08 06:34:15 +02:00
|
|
|
build_style=gnu-configure
|
2015-08-25 22:33:47 +02:00
|
|
|
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"
|
2016-05-08 06:34:15 +02:00
|
|
|
checksum=12ae39376e3915bf8fa92555989f3ad5f2f4f332b590a628541ce68987b337af
|
2015-08-25 22:33:47 +02:00
|
|
|
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/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-28 09:29:51 +02:00
|
|
|
libdwarf-doc_package() {
|
2015-08-25 22:33:47 +02:00
|
|
|
short_desc+=" - documentation"
|
|
|
|
pkg_install() {
|
|
|
|
install -dm755 $PKGDESTDIR/usr/share/doc/${pkgname}
|
|
|
|
install -m644 README NEWS *.pdf $PKGDESTDIR/usr/share/doc/${pkgname}
|
|
|
|
}
|
|
|
|
}
|