0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 14:56:16 +00:00
termux-packages/x11-packages/pidgin/build.sh
Jia Yuan Lo b01cb03fa5 fix(x11/pidgin): set conflict with finch and fix build
Link with internal libpurple properly
2024-07-31 12:56:04 +08:00

38 lines
1.6 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://pidgin.im/
TERMUX_PKG_DESCRIPTION="Multi-protocol instant messaging client"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
# please sync version and patches with packages/finch
TERMUX_PKG_VERSION="2.14.13"
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/pidgin/pidgin-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=120049dc8e17e09a2a7d256aff2191ff8491abb840c8c7eb319a161e2df16ba8
TERMUX_PKG_DEPENDS="atk, dbus, dbus-glib, fontconfig, freetype, gdk-pixbuf, glib, gst-plugins-base, gstreamer, gtk2, harfbuzz, libcairo, libgnt, libgnutls, libice, libidn, libsasl, libsm, libx11, libxcomposite, libxcursor, libxdamage, libxext, libxfixes, libxinerama, libxml2, libxrandr, libxrender, libxss, ncurses, pango, tcl, tk"
TERMUX_PKG_CONFLICTS="finch"
TERMUX_PKG_REPLACES="finch"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-avahi
--disable-gevolution
--disable-gtkspell
--disable-meanwhile
--disable-perl
--disable-nm
--disable-vv
"
termux_step_pre_configure() {
# link-with-libpurple.patch resolves "dlopen failed: cannot locate symbol"
# issues but this error is present on other distro so unlikely a problem:
# lib/purple-2/libjabber.so is not usable because the 'purple_init_plugin' symbol could not be found. Does the plugin call the PURPLE_INIT_PLUGIN() macro?
autoreconf -vfi
}
termux_step_post_make_install() {
# plugins: usr/lib/purple-2/libxmpp.so is not loadable: dlopen failed: library "libjabber.so" not found
cd $TERMUX_PREFIX/lib
for lib in jabber; do
[[ ! -f purple-2/lib${lib}.so ]] && continue
ln -fsv purple-2/lib${lib}.so .
done
}