SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "turbine"

# SliTaz package receipt.

PACKAGE="turbine"
VERSION="1.0"
CATEGORY="system-tools"
SHORT_DESC="The Memory Cleaner for SliTaz."
MAINTAINER="devel@slitaz.org"
LICENSE="GPLv3"
WEB_SITE="http://people.slitaz.org/~leonardolaporte/sh/turbine"

DEPENDS="bash librsvg yad-gtk2-html"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{

local_dir="var/www/cgi-bin/turbine"
launcher_dir="usr/share/applications"

    mkdir -p $fs/$local_dir $fs/$launcher_dir

    cp -a stuff/* $fs/$local_dir
    cp -a stuff/res/desktop/turbine.desktop $fs/$launcher_dir

}

pre_install()
{
    if [ -e "/usr/bin/turbine" ]
    then
        rm -rf /usr/bin/turbine
    fi
}

post_install()
{

startup_app="$1/var/www/cgi-bin/turbine/turbine"
quit_app="$1/var/www/cgi-bin/turbine/res/base/quit"

    chmod +x $startup_app $quit_app
    cd $1/usr/bin && ln -s $startup_app turbine
    exit

}

post_remove()
{

    # Remove the symbolic link.
    rm -rf $1/usr/bin/turbine
    exit

}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)