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

Tiny edits: fbterm, gperiodic; up: arpack-ng, libdesktop-agnostic.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Oct 12 17:01:04 2017 +0300 (2017-10-12)
parents 417f77dae192
children 0709fcf9b0d7
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 /usr/share/themes/SliTaz*/ /usr/share/slim/ /usr/share/lxdm/
122 CAT="customization|GTK+2, Openbox3, LXDM and SLiM themes"
123 DEPENDS="slim"
124 ;;
125 slitaz-configs-base)
126 CAT="base-system|for text based systems"
128 # Copy rootfs files and set permissions.
129 case "$ARCH" in
130 arm*)
131 # Most ARM configs are in slitaz-arm repo but Openbox, webhome
132 # are common to all arch.
133 copy \
134 /usr/bin/ \
135 /etc/lxpanel/ \
136 /etc/skel/
137 # No dbus on ARM
138 sed "s/exec dbus.*$/exec\"/" -i $fs/etc/skel/.xinitrc
139 ;;
140 *)
141 copy \
142 /boot/ \
143 /etc/skel/ \
144 /etc/polkit-1/ \
145 /etc/slitaz/
146 CONFIG_FILES="/etc/slitaz/applications.conf"
147 ;;
148 esac
149 copy \
150 /usr/share/ \
151 /root/
152 remove_already_packed
154 DEPENDS="tazlito tazpkg"
155 # Handle SliTaz arch
156 case "$SLITAZ_ARCH" in
157 arm*) DEPENDS="" ;;
158 esac
159 ;;
160 esac
161 }
163 # By default SLiM provide a base theme and config file have both
164 # base and slitaz who will be choose randomly, so make sure we use
165 # only slitaz theme.
166 post_install_slitaz_themes() {
167 chroot "$1/" slim-theme -s slitaz
168 }
169 pre_remove_slitaz_themes() {
170 chroot "$1/" slim-theme -f slitaz
171 }
173 post_install_slitaz_configs() {
174 for i in $(ls -d "$1/root" "$1"/home/* 2>/dev/null); do
175 [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i"
176 done
177 sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc"
178 chmod 0750 $1/root
179 }