#Maintainer: Thorsten Muehlfelder <thenktor@gmx.de>

# Mandatory
pkgname=murrine-engine
pkgver=20090926
pkgrel=1
zenver=62
arch=i686
source=("get-new-src.sh" "http://thenktor.dyndns.org/packages/$pkgname/$pkgname-$pkgver.src.tar.gz" "http://www.gnome-look.org/CONTENT/content-files/77661-Murrine-Colors-SVN.tar.gz")
sourcetemplate=http://thenktor.dyndns.org/packages/$pkgname/
url="http://www.cimitan.com/murrine/project/murrine"
docs=('README' 'AUTHORS' 'ChangeLog' 'COPYING' 'CREDITS' 'NEWS' 'TODO')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (GTK2 engine)"
"Murrine is a GTK2 engine thatwill make your desktop look like a"
"beautiful Murrina."
)

build() {
	cd $startdir/src/${pkgname}
	./autogen.sh --prefix=/usr --enable-animation || return 1
	make || return 1
	make DESTDIR="$startdir/pkg" install
	# install themes
	cd $startdir/src/
	mkdir -p $startdir/pkg/usr/share/themes
	# no panel background image
	sed -i 's|^bg_pixmap|#bg_pixmap|' Murrine\ */gtk-2.0/panel*
	cp -R "Murrine Brave" $startdir/pkg/usr/share/themes
	cp -R "Murrine Human" $startdir/pkg/usr/share/themes
	cp -R "Murrine Wine" $startdir/pkg/usr/share/themes
	cp -R "Murrine Wise" $startdir/pkg/usr/share/themes
}