wok view turbine/receipt @ rev 24789
grep: add post_install (install)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 21 09:36:52 2022 +0000 (2022-03-21) |
parents | 4ad0d7bbe903 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="turbine"
4 VERSION="1.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="The Memory Cleaner for SliTaz."
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPLv3"
9 WEB_SITE="http://people.slitaz.org/~leonardolaporte/sh/turbine"
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/turbine"
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/turbine.desktop $fs/$launcher_dir
25 }
27 pre_install()
28 {
29 if [ -e "/usr/bin/turbine" ]
30 then
31 rm -rf /usr/bin/turbine
32 fi
33 }
35 post_install()
36 {
38 startup_app="$1/var/www/cgi-bin/turbine/turbine"
39 quit_app="$1/var/www/cgi-bin/turbine/res/base/quit"
41 chmod +x $startup_app $quit_app
42 cd $1/usr/bin && ln -s $startup_app turbine
43 exit
45 }
47 post_remove()
48 {
50 # Remove the symbolic link.
51 rm -rf $1/usr/bin/turbine
52 exit
54 }