# SliTaz package receipt.

PACKAGE="thunar-archive-plugin"
VERSION="0.3.0"
CATEGORY="x-window"
SHORT_DESC="Thunar Archive Manager plugin"
MAINTAINER="erjo@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://goodies.xfce.org/projects/thunar-plugins/thunar-archive-plugin"
WGET_URL="http://archive.xfce.org/src/thunar-plugins/$PACKAGE/${VERSION%.*}/$TARBALL"

DEPENDS="thunar"
BUILD_DEPENDS="intltool thunar-dev libexo-dev libxfce4ui-dev \
 xfconf-dev startup-notification-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --libexecdir=/usr/lib \
		$CONFIGURE_ARGS && \
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/share/locale \
		$fs/usr/lib/thunarx-2
	
	cp -a $_pkg/usr/lib/thunarx-2/*.so* $fs/usr/lib/thunarx-2
	cp -a $_pkg/usr/share/icons $fs/usr/share
	cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
	cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
	
	# Fix perms
	chmod 755 $fs/usr/lib/thunar-archive-plugin/*
	
	# Cleanup
	rm -f $fs/usr/lib/thunarx-2/*.*a
}