wok annotate madeirado-theme/receipt @ rev 20943

updated fribidi and fribidi-dev (0.19.2 -> 1.0.5)
author Hans-G?nter Theisgen
date Sun Mar 03 11:26:23 2019 +0100 (2019-03-03)
parents 887b3b11683d
children 4ce52a0b72fd
rev   line source
al@18888 1 # SliTaz package receipt.
al@18888 2
al@18888 3 PACKAGE="madeirado-theme"
al@18888 4 VERSION="20130702"
al@19126 5 CATEGORY="customization"
al@18888 6 SHORT_DESC="Madeirado theme for GTK2, Openbox, SLiM, and wallparer"
al@18888 7 MAINTAINER="al.bobylev@gmail.com"
al@18888 8 LICENSE="GPL3"
al@18888 9 WEB_SITE="http://holkfoor.deviantart.com/art/Madeirado-Pack-Theme-382214228"
al@18888 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@18888 11 WGET_URL="https://dl.dropboxusercontent.com/s/ax6iqx6aa344fsu/Madeirado_GTK2_Openbox_Slim_Wallpaper.tar.bz2"
al@18899 12 TAGS="holkfoor openbox slim wallpaper"
al@19114 13 #HOST_ARCH="any" # imagemagick missing in arm
al@18888 14
al@18888 15 DEPENDS="gtk-clearlooks openbox slim"
al@18899 16 BUILD_DEPENDS="wget imagemagick"
al@18888 17
al@18888 18 # Rules to configure and make the package.
al@18888 19 compile_rules()
al@18888 20 {
al@18888 21 M=Madeirado
al@18888 22 s=$install/usr/share/slim/themes
al@18888 23 t=$install/usr/share/themes
al@18888 24 i=$install/usr/share/images
al@18888 25 mkdir -p $s $t $i
al@18888 26
al@18888 27 # SLiM theme
al@18888 28 cp -a $src/slim/$M $s
al@18888 29 (
al@18888 30 cd $s/$M
al@18888 31 convert background.png background.jpg
al@18888 32 rm background.png
al@18888 33 )
al@18888 34
al@18888 35 # GTK theme
al@18888 36 cp -a $src/theme/$M $t
al@18888 37 # (fix warnings about unsupported options)
al@18888 38 sed -i 's|^.*menuitemstyle|#&|; s|^.*listviewitemstyle|#&|;
al@18888 39 s|^.*progressbarstyle|#&|' $t/$M/gtk-2.0/gtkrc
al@18888 40
al@18888 41 # wallpaper
al@18888 42 ln -s ../slim/themes/$M/background.jpg $i/$M.jpg
al@18888 43 }
al@18888 44
al@18888 45 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18888 46 genpkg_rules()
al@18888 47 {
al@18888 48 cp -a $install/* $fs
al@18888 49 }
al@18888 50
al@18888 51 post_install()
al@18888 52 {
al@18888 53 # Set GTK+ Theme
al@18888 54 for i in $1/etc/xdg/lxsession/*/desktop.conf \
al@18888 55 $1/home/*/.config/lxsession/*/desktop.conf; do
al@18888 56 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Madeirado|' $i
al@18888 57 done
al@18899 58 pgrep lxsession >/dev/null && lxsession -r
al@18888 59
al@18888 60 # Set Openbox theme
al@18888 61 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
al@18888 62 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Madeirado<|' $i
al@18888 63 done
al@18899 64 pgrep openbox >/dev/null && openbox --reconfigure
al@18888 65
al@18888 66 # Set SLiM theme
al@18888 67 chroot "$1/" slim-theme -s Madeirado
al@18888 68
al@18888 69 # Set PCManFM wallpaper
al@18888 70 for i in $1/etc/xdg/pcmanfm/default/pcmanfm.conf \
al@18888 71 $1/home/*/.config/pcmanfm/*/*.conf; do
al@18888 72 [ -f "$i" ] && sed -i 's|wallpaper[0-9]*=.*|wallpaper=/usr/share/images/Madeirado.jpg|' $i
al@18888 73 done
al@18888 74 if [ -z "$1" -a -n "$(pgrep pcmanfm)" ]; then
al@18888 75 # Change wallpaper for current PCManFM session right now
al@18888 76 su -c 'pcmanfm -w /usr/share/images/Madeirado.jpg' \
al@18888 77 $(ps aux | grep '[p]cmanfm' | awk 'END{print $2}')
al@18888 78 fi
al@18888 79 }
al@18888 80
al@18888 81 pre_remove() {
al@18888 82 # Restore GTK+ Theme (Clearlooks Human)
al@18888 83 for i in $1/etc/xdg/lxsession/*/desktop.conf \
al@18888 84 $1/home/*/.config/lxsession/*/desktop.conf; do
al@18888 85 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Clearlooks Human|' $i
al@18888 86 done
al@18899 87 pgrep lxsession >/dev/null && lxsession -r
al@18888 88
al@18888 89 # Restore Openbox theme (SliTaz)
al@18888 90 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
al@18888 91 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
al@18888 92 done
al@18899 93 pgrep openbox >/dev/null && openbox --reconfigure
al@18888 94
al@18888 95 # Restore SLiM theme
al@18888 96 chroot "$1/" slim-theme -f Madeirado
al@18888 97
al@18888 98 # Restore PCManFM wallpaper (slitaz-background.jpg)
al@18888 99 for i in $1/etc/xdg/pcmanfm/default/pcmanfm.conf \
al@18888 100 $1/home/*/.config/pcmanfm/*/*.conf; do
al@18888 101 [ -f "$i" ] && sed -i 's|wallpaper[0-9]*=.*|wallpaper=/usr/share/images/slitaz-background.jpg|' $i
al@18888 102 done
al@18888 103 if [ -z "$1" -a -n "$(pgrep pcmanfm)" ]; then
al@18888 104 # Change wallpaper for current PCManFM session right now
al@18888 105 su -c 'pcmanfm -w /usr/share/images/slitaz-background.jpg' \
al@18888 106 $(ps aux | grep '[p]cmanfm' | awk 'END{print $2}')
al@18888 107 fi
al@18888 108 }