diff --git a/srcpkgs/kcgi/template b/srcpkgs/kcgi/template index e137169e67..702a9a8759 100644 --- a/srcpkgs/kcgi/template +++ b/srcpkgs/kcgi/template @@ -14,6 +14,17 @@ 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 \ @@ -21,4 +32,5 @@ do_install() { MAN3DIR=${DESTDIR}/usr/share/man/man3 \ MAN8DIR=${DESTDIR}/usr/share/man/man8 \ install + vlicense LICENSE }