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

itaka: fix wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 06 07:38:52 2022 +0000 (2022-09-06)
parents cdbaf97bfe46
children
rev   line source
pankso@12405 1 # SliTaz package receipt.
pankso@12405 2
pankso@12405 3 PACKAGE="compiz"
Hans-G?nter@22613 4 VERSION="0.8.14"
pankso@12405 5 CATEGORY="meta"
Hans-G?nter@22613 6 TAGS="window-manager"
pankso@12405 7 SHORT_DESC="Compiz 3D effect support on SliTaz."
pankso@12405 8 MAINTAINER="pankso@slitaz.org"
pascal@15579 9 LICENSE="MIT GPL LGPL"
pascal@24991 10 WEB_SITE="https://gitlab.com/compiz/compiz-core"
pankso@12405 11
psychomaniak@19217 12 SUGGESTED="compiz-ccsm compiz-plugins-extra emerald-themes"
Hans-G?nter@22613 13 DEPENDS="cairo-gl compiz-core compiz-libcompizconfig compiz-plugins-main
Hans-G?nter@22613 14 emerald slitaz-configs"
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
Hans-G?nter@22613 20 cp -r $stuff/xsessions $fs/usr/share
Hans-G?nter@22613 21 install -m 0777 $stuff/compiz-session $fs/usr/bin
Hans-G?nter@22613 22 install -m 0777 $stuff/compiz-startwm $fs/usr/bin
Hans-G?nter@22613 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.
Hans-G?nter@22613 32 if ! echo "$res" | grep -q $PACKAGE
Hans-G?nter@22613 33 then
pascal@20319 34 echo
pankso@12405 35 echo -n "Adding $PACKAGE to /etc/slim.conf..."
Hans-G?nter@22613 36 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" \
Hans-G?nter@22613 37 $root/etc/slim.conf
pankso@12405 38 status
pankso@12405 39 fi
Hans-G?nter@22613 40
Hans-G?nter@22613 41 for i in $(ls -d "$1"/home/* 2> /dev/null)
Hans-G?nter@22613 42 do
Hans-G?nter@22613 43 [ -d "$i" ] &&
Hans-G?nter@22613 44 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"compiz"|' -i \
Hans-G?nter@22613 45 "$i/.config/slitaz/applications.conf" \
Hans-G?nter@22613 46 "$1/etc/slitaz/applications.conf"
Hans-G?nter@22613 47 done
pankso@12405 48 }
pankso@12405 49
pankso@12405 50 post_remove()
pankso@12405 51 {
pankso@12405 52 # Remove WM from SLIM available sessions.
Hans-G?nter@22613 53 if grep -q $PACKAGE $root/etc/slim.conf
Hans-G?nter@22613 54 then
pankso@15937 55 sed -i s/,$PACKAGE// $root/etc/slim.conf
pankso@12405 56 fi
Hans-G?nter@22613 57
Hans-G?nter@22613 58 for i in $(ls -d "$1"/home/* 2> /dev/null)
Hans-G?nter@22613 59 do
Hans-G?nter@22613 60 [ -d "$i" ] &&
Hans-G?nter@22613 61 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \
Hans-G?nter@22613 62 "$i/.config/slitaz/applications.conf" \
Hans-G?nter@22613 63 "$1/etc/slitaz/applications.conf"
Hans-G?nter@22613 64 done
pankso@12405 65 }