# SliTaz package receipt.

PACKED_SIZE="20.0K"
UNPACKED_SIZE="44.0K"
PACKAGE="transset-df"
VERSION="6"
CATEGORY="x-window"
SHORT_DESC="Tool to set windows opacity."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.forchheimer.se/transset-df/"
WGET_URL="http://www.forchheimer.se/transset-df/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="xorg-libXdamage xorg-libXcomposite xorg-xcompmgr xorg-libXrender \
xorg-libXext"
BUILD_DEPENDS="xorg-libXdamage-dev xorg-libXcomposite-dev"

current_version()
{
	wget -O - $(dirname $WGET_URL) 2>/dev/null | \
	sed "/rc[0-9]/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
	make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/bin
	cp -a $src/transset-df $fs/usr/bin
}
