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

Move fonts-liberation*
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Oct 04 16:01:47 2018 +0300 (2018-10-04)
parents 2f03cb67a994
children d5aab818505e
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 REPOLOGY="-"
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 compile_rules() {
21 # xcompmgr produces visual glitches on the screen
22 sed -i 's|xcompmgr|compton|' ob-menu/menu.xml.in
23 make DESTDIR=$DESTDIR menu
24 ln -s menu.en.xml $install/etc/xdg/openbox/menu.xml
26 find /usr/share/locale -type f -name 'slitaz*'
28 cp -a $src/rootfs/* $install
30 # Put applications.conf to /etc/skel
31 mkdir -p $install/etc/skel/.config/slitaz/
32 cp -a $install/etc/slitaz/applications.conf $install/etc/skel/.config/slitaz/
34 cd $install/etc/skel
35 mkdir -p Desktop Documents Downloads Images Music Public Templates Videos
37 # actually isolinux splash is png
38 mv $install/boot/isolinux/splash.jpg $install/boot/isolinux/splash.png
40 # LXPanel settings are in lxpanel package
41 rm -r $install/etc/lxpanel
43 # Polkit *.pkla files are not working anymore,
44 # Polkit switches to javascript-based rules
45 rm -r $install/etc/polkit-1
47 # LXsession settings are in lxsession package
48 rm -r $install/etc/skel/.config/lxsession
50 # Beaver is gone...
51 sed -i 's|beaver|leafpad|' $install/usr/share/applications/defaults.list
53 # SliTaz backgrounds in the slitaz-next package
54 rm $install/usr/share/images/slitaz-background*
56 # SLiM theme in the slim package
57 rm -r $install/usr/share/slim
59 # PCManFM settings in the pcmanfm package
60 rm -r $install/usr/share/slitaz/lxde
62 # Remove templates, use that in /usr/share/templates/ only
63 rm $install/etc/skel/Templates/*
65 # Now we need ConsoleKit
66 sed -i 's|exec dbus-launch|exec ck-launch-session dbus-launch|' $install/etc/skel/.xinitrc
68 # Enable colored terminal prompt by default
69 sed -i '/PS1.*m/ s|#PS1=|PS1=|' $install/etc/skel/.profile
70 chown -R root:root $install
71 }
73 genpkg_rules() {
74 case $PACKAGE in
75 slitaz-configs)
76 # Special case for ARM since some (most) config files are in slitaz-arm repo.
77 # i486/arm common configs are provided by slitaz-configs-base.
78 case "$ARCH" in
79 arm*)
80 copy \
81 /usr/share/applications/ \
82 /usr/share/slitaz/
83 DEPENDS="slitaz-arm-configs ttf-dejavu slim"
84 ;;
85 *)
86 copy \
87 /etc/skel/.gtkrc-2.0* \
88 /etc/skel/.icons/ \
89 /etc/skel/.Xdefaults \
90 /etc/skel/.xinitrc \
91 /etc/skel/.Xresources \
92 /etc/skel/.xsession \
93 /etc/xdg/openbox/autostart \
94 /etc/xdg/openbox/environment \
95 /etc/xdg/openbox/menu.en.xml \
96 /etc/xdg/openbox/menu.xml \
97 /etc/xdg/openbox/rc.xml \
98 /usr/bin/ \
99 /usr/share/applications/ \
100 /usr/share/images/ \
101 /usr/share/pixmaps/ \
102 /usr/share/slitaz/ \
103 /usr/share/templates/ \
104 /usr/share/webhome/ \
105 /root/
106 DEPENDS="slitaz-configs-base xorg-libXcomposite \
107 xorg-libXdamage transset-df ttf-dejavu slim compton"
108 ;;
109 esac
111 CAT="base-system|for GUI systems"
112 ;;
113 slitaz-themes)
114 copy \
115 /usr/share/themes/SliTaz*/ \
116 /usr/share/slim/ \
117 /usr/share/lxdm/
118 CAT="customization|GTK+2, Openbox3, LXDM and SLiM themes"
119 DEPENDS="slim"
120 ;;
121 slitaz-configs-base)
122 CAT="base-system|for text based systems"
124 # Copy rootfs files and set permissions.
125 case "$ARCH" in
126 arm*)
127 # Most ARM configs are in slitaz-arm repo but Openbox, webhome
128 # are common to all arch.
129 copy \
130 /usr/bin/ \
131 /etc/lxpanel/ \
132 /etc/skel/
133 # No dbus on ARM
134 sed "s/exec dbus.*$/exec\"/" -i $fs/etc/skel/.xinitrc
135 ;;
136 *)
137 copy \
138 /boot/ \
139 /etc/skel/ \
140 /etc/polkit-1/ \
141 /etc/slitaz/
142 CONFIG_FILES="/etc/slitaz/applications.conf"
143 ;;
144 esac
145 copy \
146 /usr/share/ \
147 /root/ \
148 @rm
150 DEPENDS=" "
151 # Handle SliTaz arch
152 case "$SLITAZ_ARCH" in
153 arm*) DEPENDS=" " ;;
154 esac
155 ;;
156 esac
157 }
159 # By default SLiM provide a base theme and config file have both
160 # base and slitaz who will be choose randomly, so make sure we use
161 # only slitaz theme.
162 post_install_slitaz_themes() {
163 chroot "$1/" slim-theme -s slitaz
164 }
165 pre_remove_slitaz_themes() {
166 chroot "$1/" slim-theme -f slitaz
167 }
169 post_install_slitaz_configs() {
170 for i in $(ls -d "$1/root" "$1"/home/* 2>/dev/null); do
171 [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i"
172 done
173 sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc"
174 chmod 0750 $1/root
175 }