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

pkgname=thunar-archive-plugin
pkgver=0.5.2
_mainver=`echo $pkgver | sed "s/\(.*\)\.\(.*\)\.\(.*\)/\1.\2/"`
pkgrel=1gv
source=("http://archive.xfce.org/src/thunar-plugins/$pkgname/${_mainver}/${pkgname}-${pkgver}.tar.bz2")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"thunar-archive-plugin (create and extract archives with thunar)"
"The Thunar Archive Plugin allows you to create and extract archive"
"files using the file context menus in the Thunar file manager."
)


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

	# engrampa plugin
	cp scripts/engrampa.tap $startdir/pkg/usr/libexec/thunar-archive-plugin/
	chmod 755 $startdir/pkg/usr/libexec/thunar-archive-plugin/engrampa.tap
}