void-packages/srcpkgs/libunwind/template
2015-12-07 12:05:00 +01:00

35 lines
1,002 B
Bash

# Template file for 'libunwind'.
pkgname=libunwind
version=1.1
revision=6
build_style=gnu-configure
hostmakedepends="libtool automake"
makedepends="liblzma-devel"
short_desc="Portable and efficient C programming interface (API) 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.tar.gz"
checksum=9dfe0fcae2a866de9d3942c66995e4b460230446887dbdab302d41a8aee8d09a
pre_configure() {
# https://lists.gnu.org/archive/html/libunwind-devel/2014-06/msg00024.html
sed -i /LIBCRTS/s/-lgcc/-lgcc_s/ configure.ac
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
}
}