wok view slitaz-configs/receipt @ rev 16167

ARM: improve slitaz-configs*
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 29 13:56:21 2014 +0100 (2014-03-29)
parents 1e20660220da
children 08a3c649e683
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs"
4 VERSION="5.2.2"
5 ARM_VERSION="0.1"
6 CATEGORY="base-system"
7 SHORT_DESC="SliTaz config files and artwork."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="http://www.slitaz.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.gz"
13 CONFIG_FILES="/etc/slitaz/applications.conf"
14 HOST_ARCH="i486 arm"
16 DEPENDS="slitaz-configs-base xorg-libXcomposite xorg-libXdamage xorg-xcompmgr \
17 transset-df ttf-dejavu slim"
19 # Special case for ARM since some (most) config files are in slitaz-arm repo.
20 # i486/arm common configs are provided by slitaz-configs-base.
21 case "$SLITAZ_ARCH" in
22 arm*)
23 VERSION="$ARM_VERSION"
24 WEB_SITE="http://arm.slitaz.org/"
25 DEPENDS="slitaz-configs-base ttf-dejavu slim" ;;
26 esac
28 case "$ARCH" in
29 arm*)
30 VERSION="$ARM_VERSION"
31 WEB_SITE="http://arm.slitaz.org/"
32 TARBALL="$PACKAGE-arm-$VERSION.tar.bz2"
33 WGET_URL="http://hg.slitaz.org/slitaz-arm/archive/tip.tar.bz2" ;;
34 esac
36 # Rules to configure and make the package.
37 compile_rules()
38 {
39 case "$ARCH" in
40 i?86)
41 make DESTDIR=$DESTDIR menu
42 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml ;;
43 esac
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cd ${src}
50 case "$ARCH" in
51 i?86)
52 # Copy rootfs files from the stuff and set permissions.
53 mkdir -p $fs/etc/xdg/openbox $fs/usr/share
54 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg
56 # /usr/share
57 for i in applications lxdm slim slitaz
58 do
59 cp -r $src/rootfs/usr/share/$i $fs/usr/share
60 done
62 cp -a $src/rootfs/usr/bin $fs/usr
63 cp -a $src/rootfs/etc/lxpanel $fs/etc
64 cp -a $src/rootfs/etc/slitaz $fs/etc
65 cp -a $install/etc/xdg/openbox/menu.en.xml $install/etc/xdg/openbox/menu.xml \
66 $fs/etc/xdg/openbox ;;
67 arm)
68 cp -a rootfs/* ${fs} ;;
69 esac
70 chown -R root.root $fs
71 }
73 post_install()
74 {
75 case "$SLITAZ_ARCH" in
76 i?86)
77 # By default slim provide a base theme and config file have both
78 # base and slitaz who will be choose randomly, so make sure we use
79 # only slitaz theme.
80 if grep -q 'current_theme slitaz,base' $1/etc/slim.conf; then
81 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
82 $1/etc/slim.conf
83 fi ;;
84 esac
85 }