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

qps: s/-O2/-Os/g
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Mon Sep 01 17:36:26 2014 +0200 (2014-09-01)
parents 9cd79296bc67
children 22fff77a305a
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs"
4 VERSION="5.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 case "$ARCH" in
25 i?86*) BUILD_DEPENDS="locale-fr locale-pt_BR locale-ru" ;;
26 esac
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 case "$ARCH" in
32 i?86)
33 make DESTDIR=$DESTDIR menu
34 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml ;;
35 esac
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cd ${src}
42 case "$ARCH" in
43 i?86)
44 # Copy rootfs files from the stuff and set permissions.
45 mkdir -p $fs/etc/xdg/openbox $fs/usr/share
46 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg
48 # /usr/share
49 for i in applications lxdm slim slitaz
50 do
51 cp -r $src/rootfs/usr/share/$i $fs/usr/share
52 done
53 cp -a $src/rootfs/usr/bin $fs/usr
54 cp -a $src/rootfs/etc/lxpanel $fs/etc
55 cp -a $src/rootfs/etc/slitaz $fs/etc
56 cp -a $install/etc/xdg/openbox/menu.en.xml \
57 $install/etc/xdg/openbox/menu.xml \
58 $fs/etc/xdg/openbox ;;
59 arm)
60 mkdir -p $fs/usr/share
61 cp -a $src/rootfs/usr/share/applications $fs/usr/share
62 cp -a $src/rootfs/usr/share/slitaz $fs/usr/share ;;
63 esac
64 chown -R root.root $fs
65 }
67 post_install()
68 {
69 case "$SLITAZ_ARCH" in
70 i?86)
71 # By default slim provide a base theme and config file have both
72 # base and slitaz who will be choose randomly, so make sure we use
73 # only slitaz theme.
74 if grep -q 'current_theme slitaz,base' $1/etc/slim.conf; then
75 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
76 $1/etc/slim.conf
77 fi ;;
78 esac
79 }