void-packages/srcpkgs/libsigsegv/template

35 lines
1000 B
Bash
Raw Normal View History

2014-03-13 21:59:26 +01:00
# Template file for 'libsigsegv'
pkgname="libsigsegv"
version="2.10"
2015-07-05 19:08:41 +02:00
revision=4
2014-03-13 21:59:26 +01:00
build_style=gnu-configure
short_desc="Handling page faults in user mode"
maintainer="Martin Riese <grauehaare@gmx.de>"
2015-07-05 19:08:41 +02:00
license="GPL-2"
2014-03-13 21:59:26 +01:00
homepage="http://www.gnu.org/software/libsigsegv/"
distfiles="http://ftpmirror.gnu.org/libsigsegv/libsigsegv-${version}.tar.gz"
checksum="8460a4a3dd4954c3d96d7a4f5dd5bc4d9b76f5754196aa245287553b26d2199a"
configure_args="--enable-shared"
2015-07-05 19:08:41 +02:00
post_configure() {
case "$XBPS_TARGET_MACHINE" in
arm*-musl)
# Avoid double include of signal.h
sed -e "s;#define HAVE_SYS_SIGNAL_H 1;#undef HAVE_SYS_SIGNAL_H;" \
-i ${wrksrc}/config.h
# struct sigcontext already defined through sigsegv.h
sed -e "s;#include <asm/sigcontext.h>;;" \
-i ${wrksrc}/src/fault-linux-arm-old.h
esac
}
2014-03-13 21:59:26 +01:00
libsigsegv-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
2014-03-13 21:59:26 +01:00
pkg_install () {
vmove usr/include
vmove "usr/lib/*.a"
2014-03-13 21:59:26 +01:00
vmove "usr/lib/*.so"
}
}