### this file is sourced not run
PKGVER=2.14.12
PKGBUILD=1
PKGARCH=x86_64

# souce: post BLFS 7.8 2016-01-06; updated to 2.14.5 (JakeSFR) updated to BLFS 11.3
TARBALL=pidgin-$PKGVER.tar.bz2
MD5SUM=cfcf2ab67717e7c2884e4399864b877a
SRC_URL=http://downloads.sourceforge.net/pidgin/$TARBALL
BUNDLE=

SLACKREQ='gtk2 libgcrypt libgnutls libgnt libcyrus-sasl libgtkspell'
SLACKDESC="pidgin: pidgin $PKGVER (Instant Messaging)  
pidgin:  
pidgin: Pidgin is a Gtk+ 2 instant messaging client that can connect with a 
pidgin: wide range of networks including AIM, ICQ, GroupWise, MSN, Jabber, 
pidgin: IRC, Napster, Gadu-Gadu, SILC, Zephyr and Yahoo!  
pidgin: 
pidgin: This is a pure messaging client. Support for voice and video chats
pidgin: are not built-in.
pidgin: 
pidgin: 
pidgin: 
"
SLACKINSTALL='glib-compile-schemas ./usr/share/glib-2.0/schemas'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
#	return 1
	CONFFLAGS="$CONFFLAGS \
            --disable-dbus      \
            --disable-gstreamer \
            --disable-meanwhile \
            --disable-idn       \
            --disable-nm        \
            --disable-vv        \
            --disable-tcl       \
            --disable-tk        \
			--disable-perl      \
			--disable-gevolution \
			--enable-cyrus-sasl  \
			ac_cv_path_PYTHON= \
            " &&
	pkg_build_autoconf &&
	
	make docs &&
	mkdir -pv /usr/share/doc/pidgin-$PKGVER/api &&
	cp -rv doc/html/* /usr/share/doc/pidgin-$PKGVER/api &&
	pkg_build_slackdesc &&

	rm -f /usr/share/icons/hicolor/icon-theme.cache &&

	# run pidgin as spot
	#install -m755 /tmp/pkg/pidgin-spot /usr/bin &&
	ln -sfv program-spot /usr/bin/pidgin-spot &&
	sed -i -e 's|Exec=pidgin|Exec=pidgin-spot|' /usr/share/applications/pidgin.desktop &&

	# replace with our own desktop file altogether
	install -m644 /tmp/pkg/pidgin.desktop /usr/share/applications &&
	
	true
}


