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