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