python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / libsigsegv / template
blob13352c58bc46299937938749f9d69f3139ffe5d1
1 # Template file for 'libsigsegv'
2 pkgname=libsigsegv
3 version=2.12
4 revision=1
5 build_style=gnu-configure
6 short_desc="Handling page faults in user mode"
7 maintainer="Martin Riese <grauehaare@gmx.de>"
8 license="GPL-2"
9 homepage="https://www.gnu.org/software/libsigsegv/"
10 distfiles="https://ftpmirror.gnu.org/libsigsegv/libsigsegv-${version}.tar.gz"
11 checksum=3ae1af359eebaa4ffc5896a1aee3568c052c99879316a1ab57f8fe1789c390b6
12 configure_args="--enable-shared"
14 post_configure() {
15         case "$XBPS_TARGET_MACHINE" in
16         arm*-musl)
17                 # Avoid double include of signal.h
18                 sed -e "s;#define HAVE_SYS_SIGNAL_H 1;#undef HAVE_SYS_SIGNAL_H;" \
19                         -i ${wrksrc}/config.h
20                 # struct sigcontext already defined through sigsegv.h
21                 sed -e "s;#include <asm/sigcontext.h>;;" \
22                         -i ${wrksrc}/src/fault-linux-arm-old.h
23                 ;;
24         esac
26 libsigsegv-devel_package() {
27         short_desc+=" - development files"
28         depends="${sourcepkg}>=${version}_${revision}"
29         pkg_install() {
30                 vmove usr/include
31                 vmove "usr/lib/*.a"
32                 vmove "usr/lib/*.so"
33         }