wok annotate aurorials-theme/receipt @ rev 25504

Update some web_site / wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 05 09:28:51 2023 +0000 (15 months ago)
parents b01314c762e9
children 73f36875e5a7
rev   line source
al@18888 1 # SliTaz package receipt.
al@18888 2
al@18888 3 PACKAGE="aurorials-theme"
al@18888 4 VERSION="20130704"
al@19126 5 CATEGORY="customization"
al@18888 6 SHORT_DESC="Aurorials 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/Aurorials-pack-themes-382752941"
al@18888 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@25504 11 WGET_URL="https://web.archive.org/web/20230120115700/https://dl.dropboxusercontent.com/s/urt40kxaladwpeu/Aurorials_GTK2_Openbox_Slim_Wallpaper.tar.bz2"
al@18899 12 TAGS="holkfoor openbox slim wallpaper"
al@19114 13 HOST_ARCH="any"
al@18888 14
al@18888 15 DEPENDS="gtk2-engine-murrine openbox slim"
al@18899 16 BUILD_DEPENDS="wget imagemagick"
al@18888 17
pascal@24759 18 # What is the latest version available today?
pascal@24759 19 current_version()
pascal@24759 20 {
pascal@24759 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24759 22 sed 's|}|}\n|g;s|</|</\n|g' | sed '/dateTime=/!d;s|.*dateTime=.||;s|T.*||;s|-||g;q'
pascal@24759 23 }
pascal@24759 24
al@18888 25 # Rules to configure and make the package.
al@18888 26 compile_rules()
al@18888 27 {
al@18888 28 A=Aurorials
al@18888 29 s=$install/usr/share/slim/themes
al@18888 30 t=$install/usr/share/themes
al@18888 31 i=$install/usr/share/images
al@18888 32 mkdir -p $s $t $i
al@18888 33
al@18888 34 # SLiM theme
al@18888 35 cp -a $src/Slim/$A $s
al@18888 36 (
al@18888 37 cd $s/$A;
al@18888 38 convert background.png background.jpg;
al@18888 39 rm background.png
al@18888 40 )
al@18888 41
al@18888 42 # GTK theme
al@18888 43 cp -a $src/GTK2/$A $t
al@18888 44 # (fix warnings about unsupported options)
al@18888 45 sed -i 's|^.*gradients|#&|' $t/$A/gtk-2.0/gtkrc
al@18888 46
al@18888 47 # wallpaper
al@18888 48 ln -s ../slim/themes/$A/background.jpg $i/$A.jpg
al@18888 49 }
al@18888 50
al@18888 51 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18888 52 genpkg_rules()
al@18888 53 {
al@18888 54 cp -a $install/* $fs
al@18888 55 }
al@18888 56
al@18888 57 post_install()
al@18888 58 {
al@18888 59 # Set GTK+ Theme
al@18888 60 for i in $1/etc/xdg/lxsession/*/desktop.conf \
al@18888 61 $1/home/*/.config/lxsession/*/desktop.conf; do
al@18888 62 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Aurorials|' $i
al@18888 63 done
al@18899 64 pgrep lxsession >/dev/null && lxsession -r
al@18888 65
al@18888 66 # Set Openbox theme
al@18888 67 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
al@18888 68 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Aurorials<|' $i
al@18888 69 done
al@18899 70 pgrep openbox >/dev/null && openbox --reconfigure
al@18888 71
al@18888 72 # Set SLiM theme
al@18888 73 chroot "$1/" slim-theme -s Aurorials
al@18888 74
al@18888 75 # Set PCManFM wallpaper
al@18888 76 for i in $1/etc/xdg/pcmanfm/default/pcmanfm.conf \
al@18888 77 $1/home/*/.config/pcmanfm/*/*.conf; do
al@18888 78 [ -f "$i" ] && sed -i 's|wallpaper[0-9]*=.*|wallpaper=/usr/share/images/Aurorials.jpg|' $i
al@18888 79 done
al@18888 80 if [ -z "$1" -a -n "$(pgrep pcmanfm)" ]; then
al@18888 81 # Change wallpaper for current PCManFM session right now
al@18888 82 su -c 'pcmanfm -w /usr/share/images/Aurorials.jpg' \
al@18888 83 $(ps aux | grep '[p]cmanfm' | awk 'END{print $2}')
al@18888 84 fi
al@18888 85 }
al@18888 86
al@18888 87 pre_remove() {
al@18888 88 # Restore GTK+ Theme (Clearlooks Human)
al@18888 89 for i in $1/etc/xdg/lxsession/*/desktop.conf \
al@18888 90 $1/home/*/.config/lxsession/*/desktop.conf; do
al@18888 91 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Clearlooks Human|' $i
al@18888 92 done
al@18899 93 pgrep lxsession >/dev/null && lxsession -r
al@18888 94
al@18888 95 # Restore Openbox theme (SliTaz)
al@18888 96 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
al@18888 97 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
al@18888 98 done
al@18899 99 pgrep openbox >/dev/null && openbox --reconfigure
al@18888 100
al@18888 101 # Restore SLiM theme
al@18888 102 chroot "$1/" slim-theme -f Madeirado
al@18888 103
al@18888 104 # Restore PCManFM wallpaper (slitaz-background.jpg)
al@18888 105 for i in $1/etc/xdg/pcmanfm/default/pcmanfm.conf \
al@18888 106 $1/home/*/.config/pcmanfm/*/*.conf; do
al@18888 107 [ -f "$i" ] && sed -i 's|wallpaper[0-9]*=.*|wallpaper=/usr/share/images/slitaz-background.jpg|' $i
al@18888 108 done
al@18888 109 if [ -z "$1" -a -n "$(pgrep pcmanfm)" ]; then
al@18888 110 # Change wallpaper for current PCManFM session right now
al@18888 111 su -c 'pcmanfm -w /usr/share/images/slitaz-background.jpg' \
al@18888 112 $(ps aux | grep '[p]cmanfm' | awk 'END{print $2}')
al@18888 113 fi
al@18888 114 }