#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=mate-themes
pkgver=3.18.4
_majorver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)/\1/"`
pkgrel=1gv
source=("http://pub.mate-desktop.org/releases/themes/${_majorver}/mate-themes-${pkgver}.tar.xz" "index.theme")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
options=('nosrcpack')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"mate-themes (Themes for the MATE desktop)"
"Various themes for Marco, GTK, and MATE in general.  This package"
"also depicts the MATE default theme setup, including wallpaper,"
"icons, and gtk themes."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg

	# install Salix theme
	mkdir -p $startdir/pkg/usr/share/themes/Salix
	cp $startdir/src/index.theme $startdir/pkg/usr/share/themes/Salix/
}