wok-6.x annotate compiz/receipt @ rev 16294

Up: xfce-utils (4.8.3)
author Alexander Medvedev <devl547@gmail.com>
date Mon Apr 07 07:39:54 2014 +0000 (2014-04-07)
parents eb8067417980
children 5d53e8ccbc8d
rev   line source
pankso@12405 1 # SliTaz package receipt.
pankso@12405 2
pankso@12405 3 PACKAGE="compiz"
pankso@12405 4 VERSION="0.9.4"
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/"
pankso@12405 10 SUGGESTED="compiz-ccsm compiz-compizconfig-python"
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=""
pankso@12405 15
pankso@12405 16 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12405 17 genpkg_rules()
pankso@12405 18 {
pankso@12405 19 mkdir -p \
pankso@12405 20 $fs/usr/bin \
pankso@12405 21 $fs/usr/share/doc/slitaz
pankso@12405 22 echo "See: http://doc.slitaz.org/" > \
pankso@12405 23 $fs/usr/share/doc/slitaz/compiz.txt
pankso@12405 24 cp -r $stuff/xsessions $fs/usr/share
pankso@12405 25 install -m 0777 $stuff/compiz-session $fs/usr/bin
pankso@12405 26 chown -R 0.0 $fs
pankso@12405 27 }
pankso@12405 28
pankso@12405 29 post_install()
pankso@12405 30 {
pankso@15937 31 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
pankso@12405 32 # Adding WM to SLIM available sessions.
pankso@12405 33 if ! echo "$res" | grep -q $PACKAGE; then
pankso@12405 34 echo -n "Adding $PACKAGE to /etc/slim.conf..."
pankso@15937 35 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
pankso@12405 36 status
pankso@12405 37 fi
pankso@12405 38 }
pankso@12405 39
pankso@12405 40 post_remove()
pankso@12405 41 {
pankso@12405 42 # Remove WM from SLIM available sessions.
pankso@15937 43 if grep -q $PACKAGE $root/etc/slim.conf; then
pankso@15937 44 sed -i s/,$PACKAGE// $root/etc/slim.conf
pankso@12405 45 fi
pankso@12405 46 }