wok view slitaz-configs/receipt @ rev 20824

updated dfu-util (0.8 -> 0.9)
author Hans-G?nter Theisgen
date Tue Feb 19 15:12:19 2019 +0100 (2019-02-19)
parents ab43b9f8e081
children 5eee27c40050
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-configs"
4 VERSION="316"
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="" # see below
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="gettext locale-fr locale-hu locale-ja locale-pt_BR \
28 locale-ru locale-zh_CN" ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 case "$ARCH" in
35 i?86)
36 make DESTDIR=$DESTDIR menu
37 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml
38 ;;
39 esac
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cd ${src}
46 case "$ARCH" in
47 i?86)
48 # Copy rootfs files from the stuff and set permissions.
49 mkdir -p $fs/etc/xdg/openbox $fs/usr/share
50 cp -a $src/rootfs/etc/xdg/openbox $fs/etc/xdg
52 # /usr/share
53 for i in applications lxdm slim slitaz
54 do
55 cp -r $src/rootfs/usr/share/$i $fs/usr/share
56 done
57 cp -a $src/rootfs/usr/bin $fs/usr
58 cp -a $src/rootfs/etc/lxpanel $fs/etc
59 cp -a $src/rootfs/etc/slitaz $fs/etc
60 cp -a $install/etc/xdg/openbox/menu.en.xml \
61 $install/etc/xdg/openbox/menu.xml \
62 $fs/etc/xdg/openbox ;;
63 arm)
64 mkdir -p $fs/usr/share
65 cp -a $src/rootfs/usr/share/applications $fs/usr/share
66 cp -a $src/rootfs/usr/share/slitaz $fs/usr/share ;;
67 esac
69 # Put LXPanel profile to /etc/skel for new users
70 mkdir -p $fs/etc/skel/.config/lxpanel
71 cp -a $fs/etc/lxpanel/slitaz $fs/etc/skel/.config/lxpanel
73 chown -R root.root $fs
74 }
76 post_install()
77 {
78 case "$SLITAZ_ARCH" in
79 i?86)
80 # By default slim provide a base theme and config file have both
81 # base and slitaz who will be choose randomly, so make sure we use
82 # only slitaz theme.
83 if grep -q 'current_theme slitaz,base' "$1/etc/slim.conf"; then
84 sed -i s/"current_theme .*"/"current_theme slitaz"/ \
85 "$1/etc/slim.conf"
86 fi ;;
87 esac
88 }