SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "slitaz-tango-icon"

# SliTaz package receipt.

PACKAGE="slitaz-tango-icon"
VERSION="1.7"
CATEGORY="misc"
SHORT_DESC="Tango icons unofficial in size 16x16 and 32x32 (minimum)."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://tango.freedesktop.org/Tango_Icon_Library"
WGET_URL="http://download.tuxfamily.org/slitaz/sources/artwok/$TARBALL"

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

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/icons
    cp -a $src/* $fs/usr/share/icons
    chown -R root.root $fs
}

qtfix="usr/share/icons/hicolor/index.theme"

post_install()
{
    sed '/Inherits=/s|=.*$|=Tango|' -i "$1/$qtfix"
}

pre_remove()
{
    sed '/Inherits=/s|=.*$|=SliTaz|' -i "$1/$qtfix"
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)