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

# source: step
pkgname=gtk-theme-switch
TARBALL=${pkgname}_$PKGVER.orig.tar.gz
MD5SUM=a9e7e62701cd4fba4d277dc210cd4317
SRC_URL=http://ftp.de.debian.org/debian/pool/main/g/gtk-theme-switch/$TARBALL
BUNDLE=

SLACKREQ='gtk2'
SLACKDESC="$pkgname: $pkgname $PKGVER (command line GTK2 theme switcher)
$pkgname: 
$pkgname: Command-line utility to easily switch GTK2 themes. It has an optional GUI dock
$pkgname: and theme preview. It can install themes downloaded from gtk.themes.org as
$pkgname: well straight from the tarball.
$pkgname: 
$pkgname: License: GTK2
$pkgname: 
$pkgname: http://gna.org/projects/gtk-theme-switch/ (via Wayback)
$pkgname: http://muhri.net/nav.php3?node=gts (unmaintained)
$pkgname: 
"

### default pkg_download
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/$pkgname-* &&
	for p in \
		../pkg/debian-patches/fix-spelling.patch \
		../pkg/debian-patches/exit-cleanly-when-we-have-no-homedir.patch \
		../pkg/debian-patches/escape-theme-name-in-system.patch \
		../pkg/debian-patches/manpage-remove-eol-whitespace-and-fix-title.patch \
		../pkg/fix-missing-path-separator.patch \
	; do
		echo "$p"; patch -i "../pkg/$p" || return 1
	done
}

### default pkg_package
pkg_build() {
	cd tmp/$pkgname-* &&
	make &&
	install -Dm755 ../pkg/doinst.sh /install/doinst.sh &&
	pkg_build_slackdesc &&
	install -Dm755 gtk-theme-switch2 /usr/bin/gtk-theme-switch2 &&
	install -Dm644 gtk-theme-switch2.1 /usr/share/man/man1/gtk-theme-switch2.1
}

# vim:ft=sh:
