44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Template file for 'libdwarf'
|
|
pkgname=libdwarf
|
|
version=20200825
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-shared --enable-dwarfgen"
|
|
makedepends="elfutils-devel"
|
|
short_desc="DWARF Debugging Information Format Library"
|
|
maintainer="John Regan <john@jrjrtech.com>"
|
|
license="LGPL-2.1-only"
|
|
homepage="https://www.prevanders.net/dwarf.html"
|
|
distfiles="https://prevanders.net/${pkgname}-${version}.tar.gz"
|
|
checksum=c42786a085bf244c8a1b0238b57f42f6cfc582baebe5e174ea62eb1a81f32103
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends="elfutils-devel"
|
|
fi
|
|
|
|
post_install() {
|
|
rm -rf ${PKGDESTDIR}/usr/share/libdwarf/libdwarf-devel
|
|
mkdir ${DESTDIR}/usr/include/libdwarf
|
|
mv ${DESTDIR}/usr/include/*.h ${DESTDIR}/usr/include/libdwarf
|
|
}
|
|
|
|
libdwarf-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove "usr/include/libdwarf"
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|
|
|
|
libdwarf-doc_package() {
|
|
archs=noarch
|
|
short_desc+=" - documentation"
|
|
pkg_install() {
|
|
for i in README NEWS libdwarf/*.pdf ; do
|
|
vdoc $i
|
|
done
|
|
}
|
|
}
|