wok-current annotate kleanny/receipt @ rev 20040
Add: Kleanny v1.0 By The SliTaz DevTeam.
author | Leonardo Laporte <hackdorte@yandex.com> |
---|---|
date | Sun Aug 27 10:17:57 2017 -0300 (2017-08-27) |
parents | |
children | 4bb3881df3a1 |
rev | line source |
---|---|
hackdorte@20040 | 1 # SliTaz package receipt. |
hackdorte@20040 | 2 |
hackdorte@20040 | 3 PACKAGE="kleanny" |
hackdorte@20040 | 4 VERSION="1.0" |
hackdorte@20040 | 5 CATEGORY="system-tools" |
hackdorte@20040 | 6 SHORT_DESC="The Cache Cleaner for SliTaz." |
hackdorte@20040 | 7 MAINTAINER="devel@slitaz.org" |
hackdorte@20040 | 8 LICENSE="GPLv3" |
hackdorte@20040 | 9 WEB_SITE="http://people.slitaz.org/~leonardolaporte/sh/kleanny" |
hackdorte@20040 | 10 |
hackdorte@20040 | 11 DEPENDS="bash librsvg yad-gtk2-html" |
hackdorte@20040 | 12 |
hackdorte@20040 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
hackdorte@20040 | 14 genpkg_rules() |
hackdorte@20040 | 15 { |
hackdorte@20040 | 16 |
hackdorte@20040 | 17 local_dir="var/www/cgi-bin/kleanny" |
hackdorte@20040 | 18 launcher_dir="usr/share/applications" |
hackdorte@20040 | 19 |
hackdorte@20040 | 20 mkdir -p $fs/$local_dir $fs/$launcher_dir |
hackdorte@20040 | 21 |
hackdorte@20040 | 22 cp -a stuff/* $fs/$local_dir |
hackdorte@20040 | 23 cp -a stuff/res/desktop/kleanny.desktop $fs/$launcher_dir |
hackdorte@20040 | 24 |
hackdorte@20040 | 25 } |
hackdorte@20040 | 26 |
hackdorte@20040 | 27 post_install() |
hackdorte@20040 | 28 { |
hackdorte@20040 | 29 |
hackdorte@20040 | 30 startup_app="$1/var/www/cgi-bin/kleanny/kleanny" |
hackdorte@20040 | 31 quit_app="$1/var/www/cgi-bin/kleanny/res/base/quit" |
hackdorte@20040 | 32 |
hackdorte@20040 | 33 chmod +x $startup_app $quit_app |
hackdorte@20040 | 34 cd $1/usr/bin && ln -s $startup_app kleanny |
hackdorte@20040 | 35 exit |
hackdorte@20040 | 36 |
hackdorte@20040 | 37 } |
hackdorte@20040 | 38 |
hackdorte@20040 | 39 post_remove() |
hackdorte@20040 | 40 { |
hackdorte@20040 | 41 |
hackdorte@20040 | 42 # Remove the symbolic link. |
hackdorte@20040 | 43 rm -rf $1/usr/bin/kleanny && exit |
hackdorte@20040 | 44 |
hackdorte@20040 | 45 } |