wok view slitaz-configs/receipt @ rev 16481
xpaint: clean up packaged files
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 23 03:43:46 2014 +0200 (2014-04-23) |
parents | 9500b841a596 |
children | 4ec2a34f7527 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs"
4 VERSION="5.4"
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 HOST_ARCH="i486 arm"
14 DEPENDS="slitaz-configs-base xorg-libXcomposite xorg-libXdamage \
15 xorg-xcompmgr transset-df ttf-dejavu slim"
17 # Special case for ARM since some (most) config files are in slitaz-arm repo.
18 # i486/arm common configs are provided by slitaz-configs-base.
19 case "$SLITAZ_ARCH" in
20 i?86) CONFIG_FILES="/etc/slitaz/applications.conf" ;;
21 arm*) DEPENDS="slitaz-arm-configs ttf-dejavu slim" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 case "$ARCH" in
28 i?86)
29 make DESTDIR=$DESTDIR menu
30 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml ;;
31 esac
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cd ${src}
38 case "$ARCH" in
39 i?86)
40 # Copy rootfs files from the stuff and set permissions.
41 mkdir -p $fs/etc/xdg/openbox $fs/usr/share
42 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg
44 # /usr/share
45 for i in applications lxdm slim slitaz
46 do
47 cp -r $src/rootfs/usr/share/$i $fs/usr/share
48 done
49 cp -a $src/rootfs/usr/bin $fs/usr
50 cp -a $src/rootfs/etc/lxpanel $fs/etc
51 cp -a $src/rootfs/etc/slitaz $fs/etc
52 cp -a $install/etc/xdg/openbox/menu.en.xml \
53 $install/etc/xdg/openbox/menu.xml \
54 $fs/etc/xdg/openbox ;;
55 arm)
56 mkdir -p $fs/usr/share
57 cp -a $src/rootfs/usr/share/applications $fs/usr/share
58 cp -a $src/rootfs/usr/share/slitaz $fs/usr/share ;;
59 esac
60 chown -R root.root $fs
61 }
63 post_install()
64 {
65 case "$SLITAZ_ARCH" in
66 i?86)
67 # By default slim provide a base theme and config file have both
68 # base and slitaz who will be choose randomly, so make sure we use
69 # only slitaz theme.
70 if grep -q 'current_theme slitaz,base' $1/etc/slim.conf; then
71 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
72 $1/etc/slim.conf
73 fi ;;
74 esac
75 }