termux-packages/packages/profanity/build.sh
Aditya Alok e87944c492
fix(profanity): patch configure.ac to disable running python check
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
2022-03-31 22:32:49 +05:30

28 lines
1.2 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://profanity-im.github.io
TERMUX_PKG_DESCRIPTION="Profanity is a console based XMPP client written in C using ncurses and libstrophe, inspired by Irssi"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="Oliver Schmidhauser @Neo-Oli"
TERMUX_PKG_VERSION=0.12.0
TERMUX_PKG_SRCURL=https://github.com/profanity-im/profanity/releases/download/$TERMUX_PKG_VERSION/profanity-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=9e60de8cb7f747f3d433a5b091e4d439d6e2b71a958e1a7607681660638793d6
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="libandroid-support, libffi, ncurses, glib, libcurl, readline, libsqlite, libuuid, libotr, gpgme, python, libassuan, libgpg-error, zlib, libsignal-protocol-c, libstrophe"
TERMUX_PKG_BREAKS="profanity-dev"
TERMUX_PKG_REPLACES="profanity-dev"
# pcre needed by glib:
TERMUX_PKG_BUILD_DEPENDS="pcre, libgcrypt, libcrypt"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --enable-plugins --without-xscreensaver"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
_PYTHON_VERSION="$(
. "${TERMUX_SCRIPTDIR}"/packages/python/build.sh
echo "${_MAJOR_VERSION}"
)"
CPPFLAGS+=" -I$TERMUX_PREFIX/include/python${_PYTHON_VERSION}"
LDFLAGS+=" -lpython${_PYTHON_VERSION}"
autoreconf -fiv
}