wok view slitaz-configs/receipt @ rev 14908

slitaz-i18n: rewrite locale-pack.functions; slitaz-configs: now generate openbox desktop menu using po files; locale-*: update using new locale-pack.functions (FIXME: post_remove)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Aug 03 17:37:48 2013 +0300 (2013-08-03)
parents 727f65a6191b
children b042fcb86c79
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
41 chown -R root.root $fs
42 }
44 post_install()
45 {
46 # By default slim provide a base theme and config file have both
47 # base and slitaz who will be choose randomly, so make sure we use
48 # only slitaz theme.
49 if grep -q 'current_theme slitaz,base' $1/etc/slim.conf; then
50 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
51 $1/etc/slim.conf
52 fi
53 }