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

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

SLACKREQ='gtk2 libgcrypt libgnutls libgnt libcyrus-sasl'
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-avahi     \
            --disable-dbus      \
            --disable-gstreamer \
            --disable-meanwhile \
            --disable-idn       \
            --disable-nm        \
            --disable-vv        \
            --disable-tcl \
			--disable-startup-notification \
			--disable-perl \
			--disable-gevolution \
			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
}


