Update README.md
[termux-packages] / packages / finch / build.sh
CommitLineData
59f0d218
FF
1TERMUX_PKG_HOMEPAGE=http://pidgin.im/
2TERMUX_PKG_DESCRIPTION="Text-based multi-protocol instant messaging client"
f45367c4 3TERMUX_PKG_VERSION=2.11.0
24367b86 4TERMUX_PKG_REVISION=1
59f0d218
FF
5TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/pidgin/Pidgin/${TERMUX_PKG_VERSION}/pidgin-${TERMUX_PKG_VERSION}.tar.bz2
6TERMUX_PKG_DEPENDS="libgnutls, libxml2, ncurses-ui-libs, glib"
7TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-gtkui --disable-gstreamer --disable-vv --disable-idn --disable-meanwhile --disable-avahi --disable-dbus --disable-perl --disable-tcl --without-zephyr --with-ncurses-headers=$TERMUX_PREFIX/include --without-python"
7fb801a1 8TERMUX_PKG_RM_AFTER_INSTALL="share/sounds/purple lib/purple-2/libmsn.so"
59f0d218 9
7ce56385
FF
10termux_step_pre_configure () {
11 # For arpa:
12 CFLAGS+=" -isystem $TERMUX_PKG_BUILDER_DIR"
13}
86675b75 14
895604fe
FF
15termux_step_post_configure () {
16 # Hack to compile first version of libpurple-ciphers.la
17 cp $TERMUX_PREFIX/lib/libxml2.so $TERMUX_PREFIX/lib/libpurple.so
18
19 cd $TERMUX_PKG_BUILDDIR/libpurple/ciphers
20 make libpurple-ciphers.la
21 cd ..
22 make libpurple.la
23
24 # Put a more proper version in lib:
25 cp .libs/libpurple.so $TERMUX_PREFIX/lib/
26
27 make clean
28}
29
86675b75
FF
30termux_step_post_make_install () {
31 cd $TERMUX_PREFIX/lib
32 for lib in jabber oscar ymsg; do
33 ln -f -s purple-2/lib${lib}.so.0 .
34 done
35}