wok-next view slitaz-configs/receipt @ rev 16561

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