Receipt for: tango-icon-theme

source
# SliTaz package receipt.

PACKAGE="tango-icon-theme"
VERSION="0.8.90"
CATEGORY="customization"
SHORT_DESC="Tango Icon Theme"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="PublicDomain"
WEB_SITE="https://en.wikipedia.org/wiki/Tango_Desktop_Project"
TARBALL="$PACKAGE-$VERSION.tar.gz"
#WGET_URL="${WEB_SITE}releases/$TARBALL" # unavailable now
WGET_URL="http://http.debian.net/debian/pool/main/${PACKAGE:0:1}/$PACKAGE/${PACKAGE}_$VERSION.orig.tar.gz"

DEPENDS=""
BUILD_DEPENDS="intltool gettext perl icon-naming-utils imagemagick-dev \
librsvg-dev librsvg-apps"

# What is the latest version available today?
current_version()
{
	wget -O - ${WGET_URL%/*} 2>/dev/null | \
	sed "/latest/d;/${PACKAGE}_/!d;/orig/!d;s|.*${PACKAGE}_\\(.*\\).orig.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
	./configure \
		--enable-png-creation \
		$CONFIGURE_ARGS && \
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cp -a $install/* $fs
}