wok-current view tazpanel-theme-sandfive/receipt @ rev 18730
Quote root dir in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 20 15:13:45 2015 +0100 (2015-12-20) |
parents | 6d57be5e4797 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpanel-theme-sandfive"
4 VERSION="1.0"
5 CATEGORY="misc"
6 SHORT_DESC="SliTaz Sand Five theme for TazPanel"
7 MAINTAINER="holkfoor@gmail.com"
8 LICENSE="PublicDomain"
9 WEB_SITE="http://www.slitaz.org/"
11 DEPENDS="tazpanel"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 mkdir -p $fs/var/www/tazpanel/styles/sandfive
17 cp -a stuff/* $fs/var/www/tazpanel/styles/sandfive
19 # link absent files with default theme
20 cd $fs/var/www/tazpanel/styles/sandfive
21 for i in favicon.ico footer.html header.html images; do
22 ln -s ../default/$i $i
23 done
24 }
26 # Pre and post install commands for Tazpkg.
27 post_install()
28 {
29 sed -i 's|STYLE=".*"|STYLE="sandfive"|' "$1/etc/slitaz/tazpanel.conf"
30 }
32 pre_remove()
33 {
34 sed -i 's|STYLE=".*"|STYLE="default"|' "$1/etc/slitaz/tazpanel.conf"
35 }