s/TERMUX_PKG_BUILD_REVISION/TERMUX_PKG_REVISION/
[termux-packages] / packages / profanity / build.sh
CommitLineData
51720bdf
OS
1TERMUX_PKG_HOMEPAGE=http://profanity.im
2TERMUX_PKG_DESCRIPTION="Profanity is a console based XMPP client written in C using ncurses and libstrophe, inspired by Irssi"
f2748b7e 3TERMUX_PKG_VERSION=0.5.0
af4dc416 4TERMUX_PKG_REVISION=1
51720bdf
OS
5TERMUX_PKG_MAINTAINER="Oliver Schmidhauser @Neo-Oli"
6TERMUX_PKG_SRCURL=http://profanity.im/profanity-${TERMUX_PKG_VERSION}.tar.gz
47703d4d 7TERMUX_PKG_DEPENDS="ncurses,glib,libmesode,libcurl,readline,libuuid,libotr,gpgme,python"
f2748b7e 8TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --disable-python-plugins"
51720bdf
OS
9TERMUX_PKG_BUILD_IN_SRC=yes
10
11termux_step_pre_configure() {
f2748b7e
OS
12 CPPFLAGS+=" -I$TERMUX_PREFIX/include/python3.5m"
13 LDFLAGS+=" -lpython3.5m"
14}
15
16termux_step_post_configure() {
17 # Enable python support manually, as trying to go using --enable-python-plugins
18 # causes configure trying to execut python:
19 echo '#define HAVE_PYTHON 1' >> $TERMUX_PKG_SRCDIR/src/config.h
20 perl -p -i -e 's|#am__objects_2|am__objects_2|' $TERMUX_PKG_SRCDIR/Makefile
51720bdf 21}