wok view slitaz-configs/receipt @ rev 16416
Up rdesktop (1.8.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 17 13:15:06 2014 +0000 (2014-04-17) |
parents | 37ab4393a6c7 |
children | 9500b841a596 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs"
4 VERSION="5.4"
5 ARM_VERS="0.3"
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 \
17 xorg-xcompmgr 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_VERS"
24 WEB_SITE="http://arm.slitaz.org/"
25 DEPENDS="slitaz-configs-base ttf-dejavu slim"
26 CONFIG_FILES="/etc/slitaz/applications.conf /etc/rcS.conf" ;;
27 esac
29 case "$ARCH" in
30 arm*)
31 VERSION="$ARM_VERS"
32 WEB_SITE="http://arm.slitaz.org/"
33 TARBALL="$PACKAGE-arm-$VERSION.tar.bz2"
34 WGET_URL="http://hg.slitaz.org/slitaz-arm/archive/tip.tar.bz2" ;;
35 esac
37 # Rules to configure and make the package.
38 compile_rules()
39 {
40 case "$ARCH" in
41 i?86)
42 make DESTDIR=$DESTDIR menu
43 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml ;;
44 esac
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cd ${src}
51 case "$ARCH" in
52 i?86)
53 # Copy rootfs files from the stuff and set permissions.
54 mkdir -p $fs/etc/xdg/openbox $fs/usr/share
55 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg
57 # /usr/share
58 for i in applications lxdm slim slitaz
59 do
60 cp -r $src/rootfs/usr/share/$i $fs/usr/share
61 done
63 cp -a $src/rootfs/usr/bin $fs/usr
64 cp -a $src/rootfs/etc/lxpanel $fs/etc
65 cp -a $src/rootfs/etc/slitaz $fs/etc
66 cp -a $install/etc/xdg/openbox/menu.en.xml $install/etc/xdg/openbox/menu.xml \
67 $fs/etc/xdg/openbox ;;
68 arm)
69 cp -a rootfs/* ${fs} ;;
70 esac
71 chown -R root.root $fs
72 }
74 post_install()
75 {
76 case "$SLITAZ_ARCH" in
77 i?86)
78 # By default slim provide a base theme and config file have both
79 # base and slitaz who will be choose randomly, so make sure we use
80 # only slitaz theme.
81 if grep -q 'current_theme slitaz,base' $1/etc/slim.conf; then
82 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
83 $1/etc/slim.conf
84 fi ;;
85 esac
86 }