wok annotate compiz/receipt @ rev 20186
Up tcc (0.9.27) again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 01 15:13:15 2018 +0100 (2018-02-01) |
parents | 4b74c54bbbf2 |
children | 970c5ec9a60a |
rev | line source |
---|---|
pankso@12405 | 1 # SliTaz package receipt. |
pankso@12405 | 2 |
pankso@12405 | 3 PACKAGE="compiz" |
psychomaniak@19217 | 4 VERSION="0.8.12" |
pankso@12405 | 5 CATEGORY="meta" |
pankso@12405 | 6 SHORT_DESC="Compiz 3D effect support on SliTaz." |
pankso@12405 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15579 | 8 LICENSE="MIT GPL LGPL" |
pankso@12405 | 9 WEB_SITE="http://www.compiz.org/" |
al@17501 | 10 TAGS="window-manager" |
pankso@12405 | 11 |
pankso@12405 | 12 DEPENDS="emerald compiz-core compiz-plugins-main compiz-libcompizconfig \ |
psychomaniak@19469 | 13 slitaz-configs cairo-gl" |
psychomaniak@19217 | 14 SUGGESTED="compiz-ccsm compiz-plugins-extra emerald-themes" |
pankso@12405 | 15 |
pankso@12405 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12405 | 17 genpkg_rules() |
pankso@12405 | 18 { |
psychomaniak@19217 | 19 mkdir -p $fs/usr/bin |
pankso@12405 | 20 cp -r $stuff/xsessions $fs/usr/share |
pankso@12405 | 21 install -m 0777 $stuff/compiz-session $fs/usr/bin |
psychomaniak@19217 | 22 install -m 0777 $stuff/compiz-startwm $fs/usr/bin |
pankso@12405 | 23 chown -R 0.0 $fs |
pankso@12405 | 24 } |
pankso@12405 | 25 |
pankso@12405 | 26 post_install() |
pankso@12405 | 27 { |
psychomaniak@19220 | 28 chroot "$1/" tazx auto |
psychomaniak@19220 | 29 |
pankso@15937 | 30 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//) |
pankso@12405 | 31 # Adding WM to SLIM available sessions. |
pankso@12405 | 32 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@12405 | 33 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@15937 | 34 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf |
pankso@12405 | 35 status |
pankso@12405 | 36 fi |
psychomaniak@19217 | 37 for i in $(ls -d "$1"/home/* 2> /dev/null); |
psychomaniak@19217 | 38 do [ -d "$i" ] && \ |
psychomaniak@19217 | 39 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"compiz"|' -i \ |
psychomaniak@19217 | 40 "$i/.config/slitaz/applications.conf" \ |
psychomaniak@19217 | 41 "$1/etc/slitaz/applications.conf" |
psychomaniak@19217 | 42 done |
pankso@12405 | 43 } |
pankso@12405 | 44 |
pankso@12405 | 45 post_remove() |
pankso@12405 | 46 { |
pankso@12405 | 47 # Remove WM from SLIM available sessions. |
pankso@15937 | 48 if grep -q $PACKAGE $root/etc/slim.conf; then |
pankso@15937 | 49 sed -i s/,$PACKAGE// $root/etc/slim.conf |
pankso@12405 | 50 fi |
psychomaniak@19217 | 51 for i in $(ls -d "$1"/home/* 2> /dev/null); |
psychomaniak@19217 | 52 do [ -d "$i" ] && \ |
psychomaniak@19217 | 53 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \ |
psychomaniak@19217 | 54 "$i/.config/slitaz/applications.conf" \ |
psychomaniak@19217 | 55 "$1/etc/slitaz/applications.conf" |
psychomaniak@19217 | 56 done |
pankso@12405 | 57 } |