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

Up: enlightenment-pam (0.17.4)
author Dominique Corbex <domcox@slitaz.org>
date Thu Aug 08 19:20:59 2013 +0200 (2013-08-08)
parents 874b0d62ff7e
children 10e6c72b2c15
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs"
4 VERSION="5.1.6"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz config files and artwork."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="http://www.slitaz.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.gz"
12 CONFIG_FILES="/etc/slitaz/applications.conf"
14 DEPENDS="slitaz-configs-base xorg-libXcomposite xorg-libXdamage xorg-xcompmgr \
15 transset-df ttf-dejavu slitaz-tools-boxes clearlooks slim"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 make DESTDIR=$DESTDIR menu
21 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 # Copy rootfs files from the stuff and set permissions.
28 mkdir -p $fs/etc/xdg/openbox $fs/usr/share
29 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg
31 # /usr/share
32 for i in applications lxdm slim slitaz
33 do
34 cp -r $src/rootfs/usr/share/$i $fs/usr/share
35 done
37 cp -a $src/rootfs/usr/bin $fs/usr
38 cp -a $src/rootfs/etc/lxpanel $fs/etc
39 cp -a $src/rootfs/etc/slitaz $fs/etc
40 cp -a $install/etc/xdg/openbox/menu.en.xml $install/etc/xdg/openbox/menu.xml \
41 $fs/etc/xdg/openbox
43 chown -R root.root $fs
44 }
46 post_install()
47 {
48 # By default slim provide a base theme and config file have both
49 # base and slitaz who will be choose randomly, so make sure we use
50 # only slitaz theme.
51 if grep -q 'current_theme slitaz,base' $1/etc/slim.conf; then
52 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
53 $1/etc/slim.conf
54 fi
55 }