wok annotate compiz/receipt @ rev 19217

Up compiz* (0.8.12)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Fri Jun 17 15:09:10 2016 +0300 (2016-06-17)
parents 5d53e8ccbc8d
children 4b74c54bbbf2
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 \
pankso@12405 13 slitaz-configs"
pankso@12405 14 BUILD_DEPENDS=""
psychomaniak@19217 15 SUGGESTED="compiz-ccsm compiz-plugins-extra emerald-themes"
pankso@12405 16
pankso@12405 17 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12405 18 genpkg_rules()
pankso@12405 19 {
psychomaniak@19217 20 mkdir -p $fs/usr/bin
pankso@12405 21 cp -r $stuff/xsessions $fs/usr/share
pankso@12405 22 install -m 0777 $stuff/compiz-session $fs/usr/bin
psychomaniak@19217 23 install -m 0777 $stuff/compiz-startwm $fs/usr/bin
pankso@12405 24 chown -R 0.0 $fs
pankso@12405 25 }
pankso@12405 26
pankso@12405 27 post_install()
pankso@12405 28 {
pankso@15937 29 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
pankso@12405 30 # Adding WM to SLIM available sessions.
pankso@12405 31 if ! echo "$res" | grep -q $PACKAGE; then
pankso@12405 32 echo -n "Adding $PACKAGE to /etc/slim.conf..."
pankso@15937 33 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
pankso@12405 34 status
pankso@12405 35 fi
psychomaniak@19217 36 for i in $(ls -d "$1"/home/* 2> /dev/null);
psychomaniak@19217 37 do [ -d "$i" ] && \
psychomaniak@19217 38 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"compiz"|' -i \
psychomaniak@19217 39 "$i/.config/slitaz/applications.conf" \
psychomaniak@19217 40 "$1/etc/slitaz/applications.conf"
psychomaniak@19217 41 done
pankso@12405 42 }
pankso@12405 43
pankso@12405 44 post_remove()
pankso@12405 45 {
pankso@12405 46 # Remove WM from SLIM available sessions.
pankso@15937 47 if grep -q $PACKAGE $root/etc/slim.conf; then
pankso@15937 48 sed -i s/,$PACKAGE// $root/etc/slim.conf
pankso@12405 49 fi
psychomaniak@19217 50 for i in $(ls -d "$1"/home/* 2> /dev/null);
psychomaniak@19217 51 do [ -d "$i" ] && \
psychomaniak@19217 52 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \
psychomaniak@19217 53 "$i/.config/slitaz/applications.conf" \
psychomaniak@19217 54 "$1/etc/slitaz/applications.conf"
psychomaniak@19217 55 done
pankso@12405 56 }