From f8423fe34b8dd1b69330745029c4cf45de863b0a Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 17 May 2021 11:17:21 +0200 Subject: [PATCH] rxvt-unicode: hack cross. --- srcpkgs/rxvt-unicode/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/rxvt-unicode/template b/srcpkgs/rxvt-unicode/template index 9db4173cc9b..c89633c12de 100644 --- a/srcpkgs/rxvt-unicode/template +++ b/srcpkgs/rxvt-unicode/template @@ -1,7 +1,7 @@ # Template file for 'rxvt-unicode' pkgname=rxvt-unicode version=9.26 -revision=11 +revision=12 build_style=gnu-configure configure_args=" --with-terminfo=/usr/share/terminfo --enable-256-color @@ -57,6 +57,13 @@ do_configure() { fi } +pre_configure() { + if [ "$build_option_perl" ]; then + sed -i 's/rxvt_perl_link=no/rxvt_perl_link=yes/' configure + sed -i '/PERLFLAGS=/d' configure + fi +} + pre_install() { export TERMINFO="${DESTDIR}/usr/share/terminfo" mkdir -p $TERMINFO