wok view slitaz-configs/receipt @ rev 19011
busybox/fbvnc: wheelmouse support (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 28 23:15:26 2016 +0200 (2016-03-28) |
parents | 338c34110bab |
children | 22758e1c5fe9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs"
4 VERSION="275"
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
65 # Put LXPanel profile to /etc/skel for new users
66 mkdir -p $fs/etc/skel/.config/lxpanel
67 cp -a $fs/etc/lxpanel/slitaz $fs/etc/skel/.config/lxpanel
69 chown -R root.root $fs
70 }
72 post_install()
73 {
74 case "$SLITAZ_ARCH" in
75 i?86)
76 # By default slim provide a base theme and config file have both
77 # base and slitaz who will be choose randomly, so make sure we use
78 # only slitaz theme.
79 if grep -q 'current_theme slitaz,base' "$1/etc/slim.conf"; then
80 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
81 "$1/etc/slim.conf"
82 fi ;;
83 esac
84 }