36 lines
908 B
Bash
36 lines
908 B
Bash
# Template file for 'kcgi'
|
|
pkgname=kcgi
|
|
version=0.8.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
short_desc="A minimal CGI library for web applications in C"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="ISC"
|
|
homepage="http://kristaps.bsd.lv/kcgi/"
|
|
distfiles="http://kristaps.bsd.lv/kcgi/snapshots/kcgi-${version}.tgz"
|
|
checksum=f066923ed38fbdbe6cb82313503e4267ff84df869a67f68b672f294fc2581464
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
broken="http://build.voidlinux.eu/builders/i686_builder/builds/15478/steps/shell_3/logs/stdio"
|
|
fi
|
|
|
|
post_extract() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
sed -i 's/u_int/uint/g' md5.c md5.h
|
|
sed -i '/_DECLS/d' md5.h
|
|
;;
|
|
esac
|
|
|
|
sed -n '2,16p' kcgi.c > LICENSE
|
|
}
|
|
|
|
do_install() {
|
|
make \
|
|
PREFIX=${DESTDIR}/usr \
|
|
SBINDIR=${DESTDIR}/usr/bin \
|
|
MAN3DIR=${DESTDIR}/usr/share/man/man3 \
|
|
MAN8DIR=${DESTDIR}/usr/share/man/man8 \
|
|
install
|
|
vlicense LICENSE
|
|
}
|