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

Up kmod, lxqt, oxygen-icons, slitaz-base-files, slitaz-configs; add eggwm-qt5, pencil2d.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 11 16:06:23 2017 +0200 (2017-11-11)
parents 250165915708
children c4e53a39395a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="slitaz-configs"
4 VERSION="312"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz config files"
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 BUILD_DEPENDS_arm="gettext"
16 BUILD_DEPENDS="locale-de locale-en locale-fr locale-hu locale-ja locale-pt_BR \
17 locale-ru locale-zh_CN gettext"
18 SPLIT="slitaz-themes slitaz-configs-base"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 case "$ARCH" in
24 i?86)
25 # xcompmgr produces visual glitches on the screen
26 sed -i 's|xcompmgr|compton|' ob-menu/menu.xml.in
27 make DESTDIR=$DESTDIR menu
28 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml
29 ;;
30 esac
31 find /usr/share/locale -type f -name 'slitaz*'
33 cp -a $src/rootfs/* $install
35 # Put applications.conf to /etc/skel
36 mkdir -p $install/etc/skel/.config/slitaz/
37 cp -a $install/etc/slitaz/applications.conf $install/etc/skel/.config/slitaz/
39 cd $install/etc/skel
40 mkdir -p Desktop Documents Downloads Images Music Public Templates Videos
42 # actually isolinux splash is png
43 mv $install/boot/isolinux/splash.jpg $install/boot/isolinux/splash.png
45 # LXPanel settings are in lxpanel package
46 rm -r $install/etc/lxpanel
48 # Polkit *.pkla files are not working anymore,
49 # Polkit switches to javascript-based rules
50 rm -r $install/etc/polkit-1
52 # LXsession settings are in lxsession package
53 rm -r $install/etc/skel/.config/lxsession
55 # Beaver is gone...
56 sed -i 's|beaver|leafpad|' $install/usr/share/applications/defaults.list
58 # SliTaz backgrounds in the slitaz-next package
59 rm $install/usr/share/images/slitaz-background*
61 # SLiM theme in the slim package
62 rm -r $install/usr/share/slim
64 # PCManFM settings in the pcmanfm package
65 rm -r $install/usr/share/slitaz/lxde
67 # Remove templates, use that in /usr/share/templates/ only
68 rm $install/etc/skel/Templates/*
70 # Now we need ConsoleKit
71 sed -i 's|exec dbus-launch|exec ck-launch-session dbus-launch|' $install/etc/skel/.xinitrc
73 # Enable colored terminal prompt by default
74 sed -i '/PS1.*m/ s|#PS1=|PS1=|' $install/etc/skel/.profile
75 chown -R root:root $install
76 }
78 # Rules to gen a SliTaz package suitable for Tazpkg.
79 genpkg_rules()
80 {
81 case $PACKAGE in
82 slitaz-configs)
83 # Special case for ARM since some (most) config files are in slitaz-arm repo.
84 # i486/arm common configs are provided by slitaz-configs-base.
85 case "$ARCH" in
86 i?86)
87 copy \
88 /etc/skel/.gtkrc-2.0* \
89 /etc/skel/.icons/ \
90 /etc/skel/.Xdefaults \
91 /etc/skel/.xinitrc \
92 /etc/skel/.Xresources \
93 /etc/skel/.xsession \
94 /etc/xdg/openbox/autostart \
95 /etc/xdg/openbox/environment \
96 /etc/xdg/openbox/menu.en.xml \
97 /etc/xdg/openbox/menu.xml \
98 /etc/xdg/openbox/rc.xml \
99 /usr/bin/ \
100 /usr/share/applications/ \
101 /usr/share/images/ \
102 /usr/share/pixmaps/ \
103 /usr/share/slitaz/ \
104 /usr/share/templates/ \
105 /usr/share/webhome/ \
106 /root/
107 DEPENDS="slitaz-configs-base xorg-libXcomposite \
108 xorg-libXdamage transset-df ttf-dejavu slim compton"
109 ;;
110 arm)
111 copy \
112 /usr/share/applications/ \
113 /usr/share/slitaz/
114 DEPENDS="slitaz-arm-configs ttf-dejavu slim"
115 ;;
116 esac
118 CAT="base-system|for GUI systems"
119 ;;
120 slitaz-themes)
121 copy \
122 /usr/share/themes/SliTaz*/ \
123 /usr/share/slim/ \
124 /usr/share/lxdm/
125 CAT="customization|GTK+2, Openbox3, LXDM and SLiM themes"
126 DEPENDS="slim"
127 ;;
128 slitaz-configs-base)
129 CAT="base-system|for text based systems"
131 # Copy rootfs files and set permissions.
132 case "$ARCH" in
133 arm*)
134 # Most ARM configs are in slitaz-arm repo but Openbox, webhome
135 # are common to all arch.
136 copy \
137 /usr/bin/ \
138 /etc/lxpanel/ \
139 /etc/skel/
140 # No dbus on ARM
141 sed "s/exec dbus.*$/exec\"/" -i $fs/etc/skel/.xinitrc
142 ;;
143 *)
144 copy \
145 /boot/ \
146 /etc/skel/ \
147 /etc/polkit-1/ \
148 /etc/slitaz/
149 CONFIG_FILES="/etc/slitaz/applications.conf"
150 ;;
151 esac
152 copy \
153 /usr/share/ \
154 /root/ \
155 @rm
157 DEPENDS=" "
158 # Handle SliTaz arch
159 case "$SLITAZ_ARCH" in
160 arm*) DEPENDS=" " ;;
161 esac
162 ;;
163 esac
164 }
166 # By default SLiM provide a base theme and config file have both
167 # base and slitaz who will be choose randomly, so make sure we use
168 # only slitaz theme.
169 post_install_slitaz_themes() {
170 chroot "$1/" slim-theme -s slitaz
171 }
172 pre_remove_slitaz_themes() {
173 chroot "$1/" slim-theme -f slitaz
174 }
176 post_install_slitaz_configs() {
177 for i in $(ls -d "$1/root" "$1"/home/* 2>/dev/null); do
178 [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i"
179 done
180 sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc"
181 chmod 0750 $1/root
182 }