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

updated firefox-official (77.0 -> 81.0)
author Hans-G?nter Theisgen
date Sun Sep 27 14:34:31 2020 +0100 (2020-09-27)
parents 5669e8b3be70
children
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="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
10 HOST_ARCH="any"
11 REPOLOGY="-"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WGET_URL="http://hg.slitaz.org/slitaz-configs/archive/$VERSION.tar.bz2"
16 BUILD_DEPENDS="locale-de locale-en locale-fr locale-hu locale-ja locale-pt_BR \
17 locale-ru locale-zh_CN gettext-dev"
18 SPLIT="slitaz-themes $PACKAGE-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=$install 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 # Common configs are provided by slitaz-configs-base.
77 copy \
78 /etc/skel/.gtkrc-2.0* \
79 /etc/skel/.icons/ \
80 /etc/skel/.Xdefaults \
81 /etc/skel/.xinitrc \
82 /etc/skel/.Xresources \
83 /etc/skel/.xsession \
84 /etc/xdg/openbox/autostart \
85 /etc/xdg/openbox/environment \
86 /etc/xdg/openbox/menu.en.xml \
87 /etc/xdg/openbox/menu.xml \
88 /etc/xdg/openbox/rc.xml \
89 /usr/bin/ \
90 /usr/share/applications/ \
91 /usr/share/images/ \
92 /usr/share/pixmaps/ \
93 /usr/share/slitaz/ \
94 /usr/share/templates/ \
95 /usr/share/webhome/ \
96 /root/
97 DEPENDS="slitaz-configs-base libxcomposite \
98 libxdamage transset-df ttf-dejavu slim compton"
99 CAT="base-system|for GUI systems"
100 ;;
101 slitaz-themes)
102 copy \
103 /usr/share/themes/SliTaz*/ \
104 /usr/share/slim/ \
105 /usr/share/lxdm/
106 CAT="customization|GTK+2, Openbox3, LXDM and SLiM themes"
107 DEPENDS="slim"
108 ;;
109 slitaz-configs-base)
110 copy \
111 /boot/ \
112 /etc/skel/ \
113 /etc/polkit-1/ \
114 /etc/slitaz/ \
115 /usr/share/ \
116 /root/ \
117 @rm
118 CAT="base-system|for text based systems"
119 CONFIG_FILES="/etc/slitaz/applications.conf"
120 DEPENDS=" "
121 ;;
122 esac
123 }
125 # By default SLiM provide a base theme and config file have both
126 # base and slitaz who will be choose randomly, so make sure we use
127 # only slitaz theme.
128 post_install_slitaz_themes() {
129 chroot "$1/" slim-theme -s slitaz
130 }
131 pre_remove_slitaz_themes() {
132 chroot "$1/" slim-theme -f slitaz
133 }
135 post_install_slitaz_configs() {
136 for i in $(ls -d "$1/root" "$1"/home/* 2>/dev/null); do
137 [ -d "$i" ] && cp -f "$1/etc/skel/.xinitrc" "$i"
138 done
139 sed -i 's|$HOME/.config|/etc|' "$1/root/.xinitrc"
140 chmod 0750 $1/root
141 }