wok view kleanny/receipt @ rev 23337
updated perl-getopt-long (2.37 -> 2.51)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 07:34:23 2020 +0100 (2020-03-31) |
parents | 4bb3881df3a1 |
children |
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 pre_install()
28 {
29 if [ -e "/usr/bin/kleanny" ]
30 then
31 rm -rf /usr/bin/kleanny
32 fi
33 }
35 post_install()
36 {
38 startup_app="$1/var/www/cgi-bin/kleanny/kleanny"
39 quit_app="$1/var/www/cgi-bin/kleanny/res/base/quit"
41 chmod +x $startup_app $quit_app
42 cd $1/usr/bin && ln -s $startup_app kleanny
43 exit
45 }
47 post_remove()
48 {
50 # Remove the symbolic link.
51 rm -rf $1/usr/bin/kleanny && exit
53 }