wok annotate compiz/receipt @ rev 18658
Up slitaz-base-files(289)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 03 05:01:20 2015 +0200 (2015-12-03) |
parents | 41794be0da15 |
children | 8e1f5fe117e6 |
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" |
al@17501 | 11 TAGS="window-manager" |
pankso@12405 | 12 |
pankso@12405 | 13 DEPENDS="emerald compiz-core compiz-plugins-main compiz-libcompizconfig \ |
pankso@12405 | 14 slitaz-configs" |
pankso@12405 | 15 BUILD_DEPENDS="" |
pankso@12405 | 16 |
pankso@12405 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12405 | 18 genpkg_rules() |
pankso@12405 | 19 { |
pankso@12405 | 20 mkdir -p \ |
pankso@12405 | 21 $fs/usr/bin \ |
pankso@12405 | 22 $fs/usr/share/doc/slitaz |
pankso@12405 | 23 echo "See: http://doc.slitaz.org/" > \ |
pankso@12405 | 24 $fs/usr/share/doc/slitaz/compiz.txt |
pankso@12405 | 25 cp -r $stuff/xsessions $fs/usr/share |
pankso@12405 | 26 install -m 0777 $stuff/compiz-session $fs/usr/bin |
pankso@12405 | 27 chown -R 0.0 $fs |
pankso@12405 | 28 } |
pankso@12405 | 29 |
pankso@12405 | 30 post_install() |
pankso@12405 | 31 { |
pankso@15937 | 32 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//) |
pankso@12405 | 33 # Adding WM to SLIM available sessions. |
pankso@12405 | 34 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@12405 | 35 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@15937 | 36 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf |
pankso@12405 | 37 status |
pankso@12405 | 38 fi |
pankso@12405 | 39 } |
pankso@12405 | 40 |
pankso@12405 | 41 post_remove() |
pankso@12405 | 42 { |
pankso@12405 | 43 # Remove WM from SLIM available sessions. |
pankso@15937 | 44 if grep -q $PACKAGE $root/etc/slim.conf; then |
pankso@15937 | 45 sed -i s/,$PACKAGE// $root/etc/slim.conf |
pankso@12405 | 46 fi |
pankso@12405 | 47 } |