wok-6.x annotate kleanny/receipt @ rev 21491
updated msgpack and msgpack-dev (2.1.5 -> 3.1.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu May 02 11:00:56 2019 +0100 (2019-05-02) |
parents | 4bb3881df3a1 |
children |
rev | line source |
---|---|
hackdorte@20040 | 1 # SliTaz package receipt. |
hackdorte@20040 | 2 |
hackdorte@20040 | 3 PACKAGE="kleanny" |
hackdorte@20044 | 4 VERSION="1.0.1" |
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@20048 | 27 pre_install() |
hackdorte@20048 | 28 { |
hackdorte@20048 | 29 if [ -e "/usr/bin/kleanny" ] |
hackdorte@20048 | 30 then |
hackdorte@20048 | 31 rm -rf /usr/bin/kleanny |
hackdorte@20048 | 32 fi |
hackdorte@20048 | 33 } |
hackdorte@20048 | 34 |
hackdorte@20040 | 35 post_install() |
hackdorte@20040 | 36 { |
hackdorte@20040 | 37 |
hackdorte@20040 | 38 startup_app="$1/var/www/cgi-bin/kleanny/kleanny" |
hackdorte@20040 | 39 quit_app="$1/var/www/cgi-bin/kleanny/res/base/quit" |
hackdorte@20040 | 40 |
hackdorte@20040 | 41 chmod +x $startup_app $quit_app |
hackdorte@20040 | 42 cd $1/usr/bin && ln -s $startup_app kleanny |
hackdorte@20040 | 43 exit |
hackdorte@20040 | 44 |
hackdorte@20040 | 45 } |
hackdorte@20040 | 46 |
hackdorte@20040 | 47 post_remove() |
hackdorte@20040 | 48 { |
hackdorte@20040 | 49 |
hackdorte@20040 | 50 # Remove the symbolic link. |
hackdorte@20040 | 51 rm -rf $1/usr/bin/kleanny && exit |
hackdorte@20040 | 52 |
hackdorte@20040 | 53 } |