40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'kcgi'
|
|
pkgname=kcgi
|
|
version=0.10.10
|
|
revision=1
|
|
build_style=configure
|
|
configure_args="PREFIX=/usr MANDIR=/usr/share/man SBINDIR=/usr/bin"
|
|
make_cmd="bmake"
|
|
make_check_target="regress"
|
|
hostmakedepends="bmake"
|
|
checkdepends="pkg-config libcurl-devel"
|
|
short_desc="Minimal CGI library for web applications in C"
|
|
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|
license="ISC"
|
|
homepage="http://kristaps.bsd.lv/kcgi/"
|
|
distfiles="http://kristaps.bsd.lv/kcgi/snapshots/kcgi-${version}.tgz"
|
|
checksum=ca254027809c3f4e730ec21fec92d76d709c2f2827aa7d1becc59572ead427a3
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64*) broken="sandbox-seccomp-filter.c:76:34: error: initializer element is not constant"
|
|
esac
|
|
|
|
|
|
post_configure() {
|
|
local suffix
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
i686*) suffix="X86" ;;
|
|
x86_64*) suffix="X86_64" ;;
|
|
arm*) suffix="ARM" ;;
|
|
aarch64*) suffix="AARCH64" ;;
|
|
esac
|
|
[ -z "$suffix" ] \
|
|
&& sed -i "/AUDIT_ARCH_X86_64/d" config.h \
|
|
|| sed -i "s/AUDIT_ARCH_X86_64/AUDIT_ARCH_${suffix}/" config.h
|
|
}
|
|
|
|
post_install() {
|
|
sed -n '2,16p' kcgi.c > LICENSE
|
|
vlicense LICENSE
|
|
}
|