wok view slitaz-configs/receipt @ rev 15775

Up: slitaz-configs (With new splash images)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jan 08 00:46:13 2014 +0100 (2014-01-08)
parents 79f47d13ed26
children 1e20660220da
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs"
4 VERSION="5.2.1"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz config files and artwork."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
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 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 }