wok-current view slitaz-configs/receipt @ rev 12466

Up: slitaz-configs (5.1) New theme and menu for openbox 3.5
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 22 19:04:04 2012 +0200 (2012-04-22)
parents acfbd6b623b6
children cbaccc2562f6
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs"
4 VERSION="5.1"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz config files and artwork."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.slitaz.org/"
10 WGET_URL="http://mirror.slitaz.org/sources/configs/$PACKAGE-$VERSION.tar.gz"
12 DEPENDS="slitaz-configs-base xorg-libXcomposite xorg-libXdamage xorg-xcompmgr \
13 transset-df ttf-dejavu slitaz-tools-boxes clearlooks slim"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 # Copy rootfs files from the stuff and set permissions.
19 mkdir -p $fs/etc/xdg/openbox $fs/usr/share
20 for f in menu.en.xml menu.xml autostart.sh rc.xml
21 do
22 cp -a $src/rootfs/etc/xdg/openbox/$f $fs/etc/xdg/openbox
23 done
24 # /usr/share
25 for i in applications lxdm slim slitaz
26 do
27 cp -r $src/rootfs/usr/share/$i $fs/usr/share
28 done
29 cp -a $src/rootfs/etc/lxpanel $fs/etc
30 chown -R root.root $fs
31 }
33 post_install()
34 {
35 # By default slim provide a base theme and config file have both
36 # base and slitaz who will be choose randomly, so make sure we use
37 # only slitaz theme.
38 if grep -q 'current_theme slitaz,base' $1/etc/slim.conf; then
39 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
40 $1/etc/slim.conf
41 fi
42 }