SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "mist-icon-theme"

# SliTaz package receipt.

PACKAGE="mist-icon-theme"
VERSION="1-X"
CATEGORY="customization"
SHORT_DESC="Classic light-blue variation of the GNOME icon theme"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="LGPL"
WEB_SITE="https://xfce-look.org/content/show.php/Mist?content=148172"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL"

DEPENDS="gnome-icon-theme"
BUILD_DEPENDS="wget"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/lapo/mist-icon-theme/commits/master 2>/dev/null | \
    sed 's|",|&\n|g' | sed '/committedDate/!d;s|.*":"||;s|T.*||;s|-||g;q'
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    iconpath=usr/share/icons/mist
    mkdir -p $fs/$iconpath
    cp -a $src/* $fs/$iconpath
    rm -rf $fs/$iconpath/256x256
}

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

# Pre and post install commands for Tazpkg.
post_install()
{
    sed '/Inherits=/s|=.*$|=mist|' -i "$1/$qtfix"
}

pre_remove()
{
    sed '/Inherits=/s|=.*$|=SliTaz|' -i "$1/$qtfix"
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)