wok view kleanny/receipt @ rev 20044

Improvements - Thanks Paul
author Leonardo Laporte <hackdorte@yandex.com>
date Thu Aug 31 03:57:08 2017 -0300 (2017-08-31)
parents 5f4f5cda01ff
children fb697377a205
line source
1 # SliTaz package receipt.
3 PACKAGE="kleanny"
4 VERSION="1.0.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="The Cache Cleaner for SliTaz."
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPLv3"
9 WEB_SITE="http://people.slitaz.org/~leonardolaporte/sh/kleanny"
11 DEPENDS="bash librsvg yad-gtk2-html"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
17 local_dir="var/www/cgi-bin/kleanny"
18 launcher_dir="usr/share/applications"
20 mkdir -p $fs/$local_dir $fs/$launcher_dir
22 cp -a stuff/* $fs/$local_dir
23 cp -a stuff/res/desktop/kleanny.desktop $fs/$launcher_dir
25 }
27 post_install()
28 {
30 startup_app="$1/var/www/cgi-bin/kleanny/kleanny"
31 quit_app="$1/var/www/cgi-bin/kleanny/res/base/quit"
33 chmod +x $startup_app $quit_app
34 cd $1/usr/bin && ln -s $startup_app kleanny
35 exit
37 }
39 post_remove()
40 {
42 # Remove the symbolic link.
43 rm -rf $1/usr/bin/kleanny && exit
45 }