### this file is sourced not run
PKGVER=0.3.1.debian5
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=gtk-chtheme-0.3.1.tar.bz2
MD5SUM=f688053bf26dd6c4f1cd0bf2ee33de2a
SRC_URL=http://plasmasturm.org/code/gtk-chtheme/$TARBALL
BUNDLE=

SLACKREQ=gtk2
SLACKDESC='gtk-chtheme: gtk-chtheme 0.3.1debian5 (GTK Theme Chooser)  
gtk-chtheme:  
gtk-chtheme: This little program lets you change your gtk+ 2.0 theme. The aim 
gtk-chtheme: is to make theme preview and selection as slick as possible. 
gtk-chtheme: Themes installed on the system are presented for selection and 
gtk-chtheme: previewed on the fly. For a comprehensive demonstration thereâs 
gtk-chtheme: a large variety of widgets.  
gtk-chtheme: 
gtk-chtheme: 
gtk-chtheme: 
gtk-chtheme:
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/gtk*
	tar -xf $CHROOT_DIR/tmp/pkg/gtk-chtheme_0.3.1-5.debian.tar.gz
	for p in $(cat debian/patches/series); do
		patch -Np1 -i debian/patches/$p
	done
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/gtk*
	make && make install &&
	pkg_build_slackdesc &&

	# create desktop file
	mkdir -p /usr/share/applications &&
	install -m644 /tmp/pkg/GTK-chtheme.desktop /usr/share/applications
}
