2017-01-20 14:16:44 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://irssi.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Terminal based IRC client"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-05-04 18:55:51 +02:00
|
|
|
TERMUX_PKG_VERSION=1.2.3
|
2022-02-22 14:21:31 +01:00
|
|
|
TERMUX_PKG_REVISION=4
|
2019-09-08 01:45:02 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/irssi/irssi/releases/download/$TERMUX_PKG_VERSION/irssi-$TERMUX_PKG_VERSION.tar.xz
|
2021-05-04 18:55:51 +02:00
|
|
|
TERMUX_PKG_SHA256=a647bfefed14d2221fa77b6edac594934dc672c4a560417b1abcbbc6b88d769f
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2020-01-03 16:41:41 +01:00
|
|
|
TERMUX_PKG_DEPENDS="glib, libandroid-glob, libiconv, libotr, ncurses, openssl, perl, utf8proc"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="irssi-dev"
|
|
|
|
TERMUX_PKG_REPLACES="irssi-dev"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2020-01-03 16:41:41 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
ac_cv_path_perlpath=$TERMUX_PREFIX/bin/perl
|
|
|
|
--enable-true-color
|
|
|
|
--with-socks
|
|
|
|
--with-otr=static
|
|
|
|
--with-perl=static
|
|
|
|
"
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_pre_configure() {
|
2020-01-03 16:41:41 +01:00
|
|
|
local perl_version=$(. $TERMUX_SCRIPTDIR/packages/perl/build.sh; echo $TERMUX_PKG_VERSION)
|
|
|
|
|
|
|
|
# Irssi has no support for cross-compiling perl module,
|
|
|
|
# so we add it ourselves.
|
|
|
|
sed -e "s|@TERMUX_PREFIX@|$TERMUX_PREFIX|g" \
|
|
|
|
-e "s|@TERMUX_PERL_VERSION@|$perl_version|g" \
|
|
|
|
-e "s|@TERMUX_PERL_TARGET@|${TERMUX_ARCH}-android|g" \
|
2022-02-22 21:13:29 +01:00
|
|
|
$TERMUX_PKG_BUILDER_DIR/perl_config_support.diff | \
|
2020-01-03 16:41:41 +01:00
|
|
|
patch -p1
|
|
|
|
autoconf
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-perl-lib=$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/${TERMUX_ARCH}-android"
|
|
|
|
|
2015-06-13 01:03:31 +02:00
|
|
|
LDFLAGS+=" -landroid-glob"
|
2020-01-03 16:41:41 +01:00
|
|
|
|
|
|
|
# Make build log less noisy.
|
|
|
|
CFLAGS+=" -Wno-deprecated-declarations"
|
|
|
|
|
|
|
|
# Make sure that perl stuff is reinstalled.
|
|
|
|
rm -rf $TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/${TERMUX_ARCH}-android/x86_64-linux-gnu-thread-multi
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_massage() {
|
|
|
|
local perl_version=$(. $TERMUX_SCRIPTDIR/packages/perl/build.sh; echo $TERMUX_PKG_VERSION)
|
|
|
|
mv $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/${TERMUX_ARCH}-android/x86_64-linux-gnu-thread-multi/* \
|
|
|
|
$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/${TERMUX_ARCH}-android/
|
|
|
|
rm -rf $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/perl5/site_perl/$perl_version/${TERMUX_ARCH}-android/x86_64-linux-gnu-thread-multi
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|