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

# source: james
TARBALL=gnome-bluetooth-$PKGVER.tar.bz2
MD5SUM=f129686fe46c4c98eb70a0cc85d59cae
SRC_URL=http://ftp.gnome.org/pub/gnome/sources/gnome-bluetooth/2.32/$TARBALL
BUNDLE=

SLACKREQ='gtk2 libunique libdbus-glib libnotify gconf2 bluez obexftp' # gnome-doc-utils build-time only
SLACKDESC="bluetooth-applet: bluetooth-applet $PKGVER (Bluetooth applet icon tray)  
bluetooth-applet:  
bluetooth-applet: Useful to pair and manage connection to your bluetooth 
bluetooth-applet: devices. The original package name is gnome-bluetooth.  
bluetooth-applet: 
bluetooth-applet: 
bluetooth-applet: 
bluetooth-applet: 
bluetooth-applet: 
bluetooth-applet: 
bluetooth-applet:
"
SLACKINSTALL='glib-compile-schemas ./usr/share/glib-2.0/schemas'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/gnome* &&
	patch -Np1 -i ../pkg/bluetooth-applet.patch
}

### default pkg_package

### build
pkg_build() {
	cd /tmp/gnome*
	CONFFLAGS="$CONFFLAGS --disable-icon-update --disable-scrollkeeper \
	--disable-schemas-compile --disable-desktop-update --disable-nautilus-sendto \
	--disable-introspection --disable-moblin"
	pkg_build_autoconf && pkg_build_slackdesc &&

	# Fatdog binary helpers and icons
	install -m755 ../pkg/bluetooth-{browser,receiver} /usr/bin &&
	cp -a ../pkg/icons/* /usr/share/icons/hicolor 
}
