X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/51720bdf6cde8c9b36583783893abe938d609801..af4dc416ed4471e533783491e720d5695f91f447:/packages/profanity/build.sh diff --git a/packages/profanity/build.sh b/packages/profanity/build.sh index ca3e0e2f..617861ef 100644 --- a/packages/profanity/build.sh +++ b/packages/profanity/build.sh @@ -1,11 +1,21 @@ TERMUX_PKG_HOMEPAGE=http://profanity.im TERMUX_PKG_DESCRIPTION="Profanity is a console based XMPP client written in C using ncurses and libstrophe, inspired by Irssi" -TERMUX_PKG_VERSION=0.4.7 +TERMUX_PKG_VERSION=0.5.0 +TERMUX_PKG_REVISION=1 TERMUX_PKG_MAINTAINER="Oliver Schmidhauser @Neo-Oli" TERMUX_PKG_SRCURL=http://profanity.im/profanity-${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_DEPENDS="ncurses,glib,libstrophe,libcurl,readline,libuuid,libotr,gpgme" +TERMUX_PKG_DEPENDS="ncurses,glib,libmesode,libcurl,readline,libuuid,libotr,gpgme,python" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --disable-python-plugins" TERMUX_PKG_BUILD_IN_SRC=yes termux_step_pre_configure() { -./bootstrap.sh + CPPFLAGS+=" -I$TERMUX_PREFIX/include/python3.5m" + LDFLAGS+=" -lpython3.5m" +} + +termux_step_post_configure() { + # Enable python support manually, as trying to go using --enable-python-plugins + # causes configure trying to execut python: + echo '#define HAVE_PYTHON 1' >> $TERMUX_PKG_SRCDIR/src/config.h + perl -p -i -e 's|#am__objects_2|am__objects_2|' $TERMUX_PKG_SRCDIR/Makefile }