33 lines
943 B
Bash
33 lines
943 B
Bash
# Template file for 'kcgi'
|
|
pkgname=kcgi
|
|
version=0.10.8
|
|
revision=2
|
|
build_style=configure
|
|
configure_args="PREFIX=/usr MANDIR=/usr/share/man SBINDIR=/usr/bin"
|
|
make_check_target="regress"
|
|
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=878c8134d48a3048ea0bc28315fe95698fb9c764023d9244610d7e481ef3734c
|
|
|
|
post_configure() {
|
|
local suffix
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
i686*) suffix="X86" ;;
|
|
x86_64*) suffix="X86_64" ;;
|
|
arm*) suffix="ARM" ;;
|
|
aarch64*) suffix="AARCH64" ;;
|
|
esac
|
|
echo "suffix $suffix <<<<<" >&2
|
|
[ -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
|
|
}
|