preload-hacks: Some patches to make it work.
[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"
bc95de80 3TERMUX_PKG_VERSION=0.5.1
42cafa15 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
bc95de80
FF
7TERMUX_PKG_SHA256=e3513713e74ec3363fbdbac2919bdc17e249988780cc5a4589d1425807a7feb8
8TERMUX_PKG_DEPENDS="libandroid-support,ncurses,glib,libmesode,libcurl,readline,libuuid,libotr,gpgme,python"
f2748b7e 9TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --disable-python-plugins"
51720bdf
OS
10TERMUX_PKG_BUILD_IN_SRC=yes
11
12termux_step_pre_configure() {
449d39d0
FF
13 CPPFLAGS+=" -I$TERMUX_PREFIX/include/python3.6m"
14 LDFLAGS+=" -lpython3.6m"
f2748b7e
OS
15}
16
17termux_step_post_configure() {
18 # Enable python support manually, as trying to go using --enable-python-plugins
19 # causes configure trying to execut python:
20 echo '#define HAVE_PYTHON 1' >> $TERMUX_PKG_SRCDIR/src/config.h
21 perl -p -i -e 's|#am__objects_2|am__objects_2|' $TERMUX_PKG_SRCDIR/Makefile
51720bdf 22}