wok-current annotate compiz/receipt @ rev 20319

Up tazlito (501)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 20 13:28:18 2018 +0200 (2018-05-20)
parents 7aee71cc8a7e
children cdbaf97bfe46
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
pascal@20319 33 echo
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
psychomaniak@19217 38 for i in $(ls -d "$1"/home/* 2> /dev/null);
psychomaniak@19217 39 do [ -d "$i" ] && \
psychomaniak@19217 40 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"compiz"|' -i \
psychomaniak@19217 41 "$i/.config/slitaz/applications.conf" \
psychomaniak@19217 42 "$1/etc/slitaz/applications.conf"
psychomaniak@19217 43 done
pankso@12405 44 }
pankso@12405 45
pankso@12405 46 post_remove()
pankso@12405 47 {
pankso@12405 48 # Remove WM from SLIM available sessions.
pankso@15937 49 if grep -q $PACKAGE $root/etc/slim.conf; then
pankso@15937 50 sed -i s/,$PACKAGE// $root/etc/slim.conf
pankso@12405 51 fi
psychomaniak@19217 52 for i in $(ls -d "$1"/home/* 2> /dev/null);
psychomaniak@19217 53 do [ -d "$i" ] && \
psychomaniak@19217 54 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \
psychomaniak@19217 55 "$i/.config/slitaz/applications.conf" \
psychomaniak@19217 56 "$1/etc/slitaz/applications.conf"
psychomaniak@19217 57 done
pankso@12405 58 }