diff --git a/srcpkgs/znc/template b/srcpkgs/znc/template index c963132118..2138b7819a 100644 --- a/srcpkgs/znc/template +++ b/srcpkgs/znc/template @@ -1,9 +1,7 @@ -nocross=yes #tempfix - # Template file for 'znc' pkgname=znc version=1.6.3 -revision=4 +revision=5 build_style=gnu-configure configure_args="--enable-python --enable-perl --enable-tcl --enable-cyrus" hostmakedepends="pkg-config perl" @@ -20,6 +18,12 @@ znc_homedir="/var/lib/znc" make_dirs="/var/lib/znc 0750 znc znc" pre_configure() { + local perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE} + mkdir -p $perlprefix + cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Config"* $perlprefix + cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Errno.pm" $perlprefix + export PERL5LIB=$perlprefix + export TCL_FLAGS="$CFLAGS $LDFLAGS -ltcl8.6" }