wok-next view compiz-slitaz/receipt @ rev 21360
guacamole: inserted fix libtool
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 13 06:41:39 2020 +0100 (2020-04-13) |
parents | 7aa0ae2f7190 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="compiz-slitaz"
4 VERSION="0.8.14"
5 CATEGORY="meta"
6 SHORT_DESC="Compiz 3D effect support on SliTaz"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="MIT GPL LGPL"
9 WEB_SITE="http://www.compiz.org/"
10 HOST_ARCH="any"
12 DEPENDS_std="emerald compiz-core compiz-plugins-main compiz-libcompizconfig \
13 slitaz-configs libcairo"
15 TAGS="window-manager"
17 compile_rules() {
18 install -Dm755 $stuff/compiz-session $install/usr/bin/compiz-session
19 install -Dm755 $stuff/compiz-startwm $install/usr/bin/compiz-startwm
20 install -Dm644 $stuff/compiz.desktop $install/usr/share/xsessions/compiz.desktop
21 }
23 genpkg_rules() {
24 copy @std; DEPENDS="$DEPENDS_std"
25 SUGGESTED="compiz-ccsm compiz-plugins-extra emerald-themes"
26 }
28 post_install() {
29 chroot "$1/" tazx auto
31 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
32 # Adding WM to SLIM available sessions.
33 if ! echo "$res" | grep -q compiz; then
34 echo -n "Adding compiz to /etc/slim.conf..."
35 sed -i "s/^sessions.*/sessions $res,compiz/" $root/etc/slim.conf
36 status
37 fi
38 for i in $(ls -d "$1"/home/* 2>/dev/null);
39 do [ -d "$i" ] &&
40 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"compiz"|' -i \
41 "$i/.config/slitaz/applications.conf" \
42 "$1/etc/slitaz/applications.conf"
43 done
44 }
46 post_remove() {
47 # Remove WM from SLIM available sessions.
48 if grep -q compiz $root/etc/slim.conf; then
49 sed -i 's|,compiz||' $root/etc/slim.conf
50 fi
51 for i in $(ls -d "$1"/home/* 2>/dev/null);
52 do [ -d "$i" ] &&
53 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \
54 "$i/.config/slitaz/applications.conf" \
55 "$1/etc/slitaz/applications.conf"
56 done
57 }