wok-current annotate compiz/receipt @ rev 15579
Remove cromfs-or-squashfs; add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 30 10:06:29 2013 +0000 (2013-11-30) |
parents | 569abf072b71 |
children | 41794be0da15 |
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@12405 | 31 res=$(cat $1/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@12405 | 35 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/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@12405 | 43 if grep -q $PACKAGE $1/etc/slim.conf; then |
pankso@12405 | 44 sed -i s/,$PACKAGE// $1/etc/slim.conf |
pankso@12405 | 45 fi |
pankso@12405 | 46 } |