wok-next view slitaz-configs/receipt @ rev 19840
Up librsvg (split more), make-slitaz-icons (use rsvg-convert instead of inkscape), faenza-icon-theme (keep original theme), slitaz-icons-faenza (combine light & dark).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Aug 14 15:53:27 2017 +0300 (2017-08-14) |
parents | 31964b29e8cc |
children | 2e9df1b30cc2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs"
4 VERSION="300"
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 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.bz2"
15 DEPENDS="slitaz-configs-base xorg-libXcomposite xorg-libXdamage \
16 xorg-xcompmgr transset-df ttf-dejavu slim"
17 SIBLINGS="slitaz-configs-base"
19 # Special case for ARM since some (most) config files are in slitaz-arm repo.
20 # i486/arm common configs are provided by slitaz-configs-base.
21 case "$SLITAZ_ARCH" in
22 i?86) CONFIG_FILES="/etc/slitaz/applications.conf" ;;
23 arm*) DEPENDS="slitaz-arm-configs ttf-dejavu slim" ;;
24 esac
26 case "$ARCH" in
27 i?86*) BUILD_DEPENDS="locale-fr locale-pt_BR locale-ru" ;;
28 esac
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 case "$ARCH" in
34 i?86)
35 make DESTDIR=$DESTDIR menu
36 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml
37 ;;
38 esac
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 case "$ARCH" in
45 i?86)
46 # Copy rootfs files from the stuff
47 mkdir -p $fs/etc/xdg/openbox $fs/usr/share
48 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg
50 # /usr/share
51 for i in applications lxdm slim slitaz; 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 ;;
61 arm)
62 mkdir -p $fs/usr/share
63 cp -a $src/rootfs/usr/share/applications $fs/usr/share
64 cp -a $src/rootfs/usr/share/slitaz $fs/usr/share
65 ;;
66 esac
68 # Put LXPanel profile to /etc/skel for new users
69 mkdir -p $fs/etc/skel/.config/lxpanel
70 cp -a $fs/etc/lxpanel/slitaz $fs/etc/skel/.config/lxpanel
72 chown -R root.root $fs
73 }
75 post_install()
76 {
77 case "$SLITAZ_ARCH" in
78 i?86)
79 # By default SLiM provide a base theme and config file have both
80 # base and slitaz who will be choose randomly, so make sure we use
81 # only slitaz theme.
82 if grep -q 'current_theme slitaz,base' "$1/etc/slim.conf"; then
83 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
84 "$1/etc/slim.conf"
85 fi
86 ;;
87 esac
88 }