wok annotate japanes-theme/receipt @ rev 25332

updated strace (5.6 -> 5.18)
author Hans-G?nter Theisgen
date Sat Jul 23 14:59:58 2022 +0100 (2022-07-23)
parents 40fab26c175d
children 73f36875e5a7
rev   line source
al@18899 1 # SliTaz package receipt.
al@18899 2
al@18899 3 PACKAGE="japanes-theme"
al@18899 4 VERSION="20130705"
al@19126 5 CATEGORY="customization"
al@18899 6 SHORT_DESC="Japanes Openbox and GTK2 Theme"
al@18899 7 MAINTAINER="al.bobylev@gmail.com"
al@18899 8 LICENSE="GPL3"
al@18899 9 WEB_SITE="http://holkfoor.deviantart.com/art/Japanes-Openbox-and-GTK2-Theme-382947891"
al@18899 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@18899 11 WGET_URL="https://www.dropbox.com/s/2ronvzzogtdlmbt/Japanes_GTK2_and_Openbox.tar.bz2"
al@18899 12 TAGS="holkfoor openbox"
al@19114 13 HOST_ARCH="any"
al@18899 14
al@18899 15 DEPENDS="gtk-clearlooks openbox"
al@18899 16 BUILD_DEPENDS="wget"
al@18899 17
pascal@24744 18 # What is the latest version available today?
pascal@24744 19 current_version()
pascal@24744 20 {
pascal@24744 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24744 22 sed 's|}|}\n|g;s|</|</\n|g' | sed '/dateTime=/!d;s|.*dateTime=.||;s|T.*||;s|-||g;q'
pascal@24744 23 }
pascal@24744 24
al@18899 25 # Rules to configure and make the package.
al@18899 26 compile_rules()
al@18899 27 {
al@18899 28 mkdir -p $install/usr/share/themes
al@18899 29 cp -a $src/Japanes $install/usr/share/themes
al@18899 30
al@18899 31 # (fix warnings about unsupported options)
al@18899 32 sed -i 's|^.*menuitemstyle|#&|; s|^.*listviewitemstyle|#&|;
al@18899 33 s|^.*progressbarstyle|#&|' $install/usr/share/themes/Japanes/gtk-2.0/gtkrc
al@18899 34 }
al@18899 35
al@18899 36 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18899 37 genpkg_rules()
al@18899 38 {
al@18899 39 cp -a $install/* $fs
al@18899 40 }
al@18899 41
al@18899 42 post_install()
al@18899 43 {
al@18899 44 # Set GTK+ Theme
al@18899 45 for i in $1/etc/xdg/lxsession/*/desktop.conf \
al@18899 46 $1/home/*/.config/lxsession/*/desktop.conf; do
al@18899 47 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Japanes|' $i
al@18899 48 done
al@18899 49 pgrep lxsession >/dev/null && lxsession -r
al@18899 50
al@18899 51 # Set Openbox theme
al@18899 52 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
al@18899 53 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Japanes<|' $i
al@18899 54 done
al@18899 55 pgrep openbox >/dev/null && openbox --reconfigure
al@18899 56 }
al@18899 57
al@18899 58 pre_remove() {
al@18899 59 # Restore GTK+ Theme (Clearlooks Human)
al@18899 60 for i in $1/etc/xdg/lxsession/*/desktop.conf \
al@18899 61 $1/home/*/.config/lxsession/*/desktop.conf; do
al@18899 62 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Clearlooks Human|' $i
al@18899 63 done
al@18899 64 pgrep lxsession && lxsession -r
al@18899 65
al@18899 66 # Restore Openbox theme (SliTaz)
al@18899 67 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
al@18899 68 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
al@18899 69 done
al@18899 70 pgrep openbox && openbox --reconfigure
al@18899 71 }