wok-6.x view slitaz-configs/receipt @ rev 19508
Up slitaz-configs(297)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Nov 20 01:03:54 2016 +0200 (2016-11-20) |
parents | e97a0707db43 |
children | d5add2d69322 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs"
4 VERSION="297"
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"
13 SIBLINGS="slitaz-configs-base"
15 DEPENDS="slitaz-configs-base xorg-libXcomposite xorg-libXdamage \
16 xorg-xcompmgr transset-df ttf-dejavu slim"
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 case "$ARCH" in
26 i?86*) BUILD_DEPENDS="locale-fr locale-pt_BR locale-ru" ;;
27 esac
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 case "$ARCH" in
33 i?86)
34 make DESTDIR=$DESTDIR menu
35 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml ;;
36 esac
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cd ${src}
43 case "$ARCH" in
44 i?86)
45 # Copy rootfs files from the stuff and set permissions.
46 mkdir -p $fs/etc/xdg/openbox $fs/usr/share
47 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg
49 # /usr/share
50 for i in applications lxdm slim slitaz
51 do
52 cp -r $src/rootfs/usr/share/$i $fs/usr/share
53 done
54 cp -a $src/rootfs/usr/bin $fs/usr
55 cp -a $src/rootfs/etc/lxpanel $fs/etc
56 cp -a $src/rootfs/etc/slitaz $fs/etc
57 cp -a $install/etc/xdg/openbox/menu.en.xml \
58 $install/etc/xdg/openbox/menu.xml \
59 $fs/etc/xdg/openbox ;;
60 arm)
61 mkdir -p $fs/usr/share
62 cp -a $src/rootfs/usr/share/applications $fs/usr/share
63 cp -a $src/rootfs/usr/share/slitaz $fs/usr/share ;;
64 esac
66 # Put LXPanel profile to /etc/skel for new users
67 mkdir -p $fs/etc/skel/.config/lxpanel
68 cp -a $fs/etc/lxpanel/slitaz $fs/etc/skel/.config/lxpanel
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 }