wok-current view compiz/receipt @ rev 24155

linld : fix lm detection
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 06 16:44:52 2021 +0000 (2021-12-06)
parents 970c5ec9a60a
children e171b422f9e7
line source
1 # SliTaz package receipt.
3 PACKAGE="compiz"
4 VERSION="0.8.14"
5 CATEGORY="meta"
6 TAGS="window-manager"
7 SHORT_DESC="Compiz 3D effect support on SliTaz."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="MIT GPL LGPL"
10 WEB_SITE="http://www.compiz.org/"
12 SUGGESTED="compiz-ccsm compiz-plugins-extra emerald-themes"
13 DEPENDS="cairo-gl compiz-core compiz-libcompizconfig compiz-plugins-main
14 emerald slitaz-configs"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mkdir -p $fs/usr/bin
20 cp -r $stuff/xsessions $fs/usr/share
21 install -m 0777 $stuff/compiz-session $fs/usr/bin
22 install -m 0777 $stuff/compiz-startwm $fs/usr/bin
23 chown -R 0.0 $fs
24 }
26 post_install()
27 {
28 chroot "$1/" tazx auto
30 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
31 # Adding WM to SLIM available sessions.
32 if ! echo "$res" | grep -q $PACKAGE
33 then
34 echo
35 echo -n "Adding $PACKAGE to /etc/slim.conf..."
36 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \
37 $root/etc/slim.conf
38 status
39 fi
41 for i in $(ls -d "$1"/home/* 2> /dev/null)
42 do
43 [ -d "$i" ] &&
44 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"compiz"|' -i \
45 "$i/.config/slitaz/applications.conf" \
46 "$1/etc/slitaz/applications.conf"
47 done
48 }
50 post_remove()
51 {
52 # Remove WM from SLIM available sessions.
53 if grep -q $PACKAGE $root/etc/slim.conf
54 then
55 sed -i s/,$PACKAGE// $root/etc/slim.conf
56 fi
58 for i in $(ls -d "$1"/home/* 2> /dev/null)
59 do
60 [ -d "$i" ] &&
61 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \
62 "$i/.config/slitaz/applications.conf" \
63 "$1/etc/slitaz/applications.conf"
64 done
65 }