Use more source checksums
[termux-packages] / packages / finch / build.sh
1 TERMUX_PKG_HOMEPAGE=http://pidgin.im/
2 TERMUX_PKG_DESCRIPTION="Text-based multi-protocol instant messaging client"
3 TERMUX_PKG_VERSION=2.11.0
4 TERMUX_PKG_REVISION=1
5 TERMUX_PKG_SRCURL=http://downloads.sourceforge.net/project/pidgin/Pidgin/${TERMUX_PKG_VERSION}/pidgin-${TERMUX_PKG_VERSION}.tar.bz2
6 TERMUX_PKG_SHA256=f72613440586da3bdba6d58e718dce1b2c310adf8946de66d8077823e57b3333
7 TERMUX_PKG_DEPENDS="libgnutls, libxml2, ncurses-ui-libs, glib"
8 TERMUX_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"
9 TERMUX_PKG_RM_AFTER_INSTALL="share/sounds/purple lib/purple-2/libmsn.so"
10
11 termux_step_pre_configure () {
12 # For arpa:
13 CFLAGS+=" -isystem $TERMUX_PKG_BUILDER_DIR"
14 }
15
16 termux_step_post_configure () {
17 # Hack to compile first version of libpurple-ciphers.la
18 cp $TERMUX_PREFIX/lib/libxml2.so $TERMUX_PREFIX/lib/libpurple.so
19
20 cd $TERMUX_PKG_BUILDDIR/libpurple/ciphers
21 make libpurple-ciphers.la
22 cd ..
23 make libpurple.la
24
25 # Put a more proper version in lib:
26 cp .libs/libpurple.so $TERMUX_PREFIX/lib/
27
28 make clean
29 }
30
31 termux_step_post_make_install () {
32 cd $TERMUX_PREFIX/lib
33 for lib in jabber oscar ymsg; do
34 ln -f -s purple-2/lib${lib}.so.0 .
35 done
36 }