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

pkgname=thunar-archive-plugin
pkgver=0.2.4
pkgrel=1gv
arch=i486
source=("http://download.berlios.de/xfce-goodies/thunar-archive-plugin-$pkgver.tar.bz2" "thunar-archive-plugin-0.2.4-7zlzmaxz.patch" "thunar-archive-plugin-0.2.4-file-roller.patch")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://foo-projects.org/~benny/projects/thunar-archive-plugin/index.html

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

	patch -p1 < $startdir/src/thunar-archive-plugin-0.2.4-7zlzmaxz.patch || exit 1
	patch -p1 < $startdir/src/thunar-archive-plugin-0.2.4-file-roller.patch || exit 1

	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc
	make || return 1
	make install DESTDIR=$startdir/pkg
}