void-packages/srcpkgs/libunwind/template
2016-10-01 18:53:46 +02:00

38 lines
971 B
Bash

# Template file for 'libunwind'.
pkgname=libunwind
version=1.2rc1
revision=2
wrksrc="${pkgname}-${version/rc/-rc}"
build_style=gnu-configure
hostmakedepends="libtool automake"
makedepends="liblzma-devel"
short_desc="Library to determine the call-chain of a program"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.nongnu.org/libunwind/"
license="MIT"
distfiles="http://download.savannah.gnu.org/releases/$pkgname/$pkgname-${version/rc/-rc}.tar.gz"
checksum=d222f186b6bc60f49dac5030516ec35a7ed0ccca675551d6cf81008112116abc
case "$XBPS_TARGET_MACHINE" in
aarch64-musl) broken="needs getcontext";;
esac
pre_configure() {
sed -i /SUBDIRS/s/tests// Makefile.am
autoreconf -fi
}
post_install() {
vlicense LICENSE
}
libunwind-devel_package() {
depends="${sourcepkg}>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share
}
}