wok-6.x view compiz/receipt @ rev 21377
razorqt, rrdtool: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 22 10:58:42 2019 +0200 (2019-04-22) |
parents | 7aee71cc8a7e |
children | cdbaf97bfe46 |
line source
1 # SliTaz package receipt.
3 PACKAGE="compiz"
4 VERSION="0.8.12"
5 CATEGORY="meta"
6 SHORT_DESC="Compiz 3D effect support on SliTaz."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT GPL LGPL"
9 WEB_SITE="http://www.compiz.org/"
10 TAGS="window-manager"
12 DEPENDS="emerald compiz-core compiz-plugins-main compiz-libcompizconfig \
13 slitaz-configs cairo-gl"
14 SUGGESTED="compiz-ccsm compiz-plugins-extra emerald-themes"
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; then
33 echo
34 echo -n "Adding $PACKAGE to /etc/slim.conf..."
35 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $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 {
48 # Remove WM from SLIM available sessions.
49 if grep -q $PACKAGE $root/etc/slim.conf; then
50 sed -i s/,$PACKAGE// $root/etc/slim.conf
51 fi
52 for i in $(ls -d "$1"/home/* 2> /dev/null);
53 do [ -d "$i" ] && \
54 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \
55 "$i/.config/slitaz/applications.conf" \
56 "$1/etc/slitaz/applications.conf"
57 done
58 }