SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "slim-theme-leaves"

# SliTaz package receipt.

PACKAGE="slim-theme-leaves"
VERSION="20150602"
CATEGORY="customization"
SHORT_DESC="Leaves - theme for SLiM"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="PublicDomain"
WEB_SITE="https://github.com/SliTaz-official/hackdorte-artwork/tree/master/slim/themes"
TAGS="hackdorte slim"
COOKOPTS="!pngquant"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL"

DEPENDS="slim"
BUILD_DEPENDS="imagemagick"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/SliTaz-official/hackdorte-artwork/commits/master 2>/dev/null | \
    sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
}

# Rules to configure and make the package.
compile_rules()
{
    theme=$install/usr/share/slim/themes/Leaves
    mkdir -p $theme
    cp -a $src/* $theme
    cd $theme
    convert background.png background.jpg
    rm background.png
    chown -R root:root $install
}

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

post_install()
{
    chroot "$1/" slim-theme -s Leaves
}

pre_remove()
{
    chroot "$1/" slim-theme -f Leaves
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)