wok-6.x annotate japanes-theme/receipt @ rev 18899

Add more art from Leonardo Laporte.
SLiM themes Clean, Esperanza, Japan Art, Leaves, Montanhoso.
Openbox 3 themes Blinder, Chrommo.
Combo-theme Japanes (Openbox and GTK2).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Feb 18 16:54:27 2016 +0200 (2016-02-18)
parents
children 887b3b11683d
rev   line source
al@18899 1 # SliTaz package receipt.
al@18899 2
al@18899 3 PACKAGE="japanes-theme"
al@18899 4 VERSION="20130705"
al@18899 5 CATEGORY="misc"
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@18899 13
al@18899 14 DEPENDS="gtk-clearlooks openbox"
al@18899 15 BUILD_DEPENDS="wget"
al@18899 16
al@18899 17 # Rules to configure and make the package.
al@18899 18 compile_rules()
al@18899 19 {
al@18899 20 mkdir -p $install/usr/share/themes
al@18899 21 cp -a $src/Japanes $install/usr/share/themes
al@18899 22
al@18899 23 # (fix warnings about unsupported options)
al@18899 24 sed -i 's|^.*menuitemstyle|#&|; s|^.*listviewitemstyle|#&|;
al@18899 25 s|^.*progressbarstyle|#&|' $install/usr/share/themes/Japanes/gtk-2.0/gtkrc
al@18899 26 }
al@18899 27
al@18899 28 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18899 29 genpkg_rules()
al@18899 30 {
al@18899 31 cp -a $install/* $fs
al@18899 32 }
al@18899 33
al@18899 34 post_install()
al@18899 35 {
al@18899 36 # Set GTK+ Theme
al@18899 37 for i in $1/etc/xdg/lxsession/*/desktop.conf \
al@18899 38 $1/home/*/.config/lxsession/*/desktop.conf; do
al@18899 39 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Japanes|' $i
al@18899 40 done
al@18899 41 pgrep lxsession >/dev/null && lxsession -r
al@18899 42
al@18899 43 # Set Openbox theme
al@18899 44 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
al@18899 45 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Japanes<|' $i
al@18899 46 done
al@18899 47 pgrep openbox >/dev/null && openbox --reconfigure
al@18899 48 }
al@18899 49
al@18899 50 pre_remove() {
al@18899 51 # Restore GTK+ Theme (Clearlooks Human)
al@18899 52 for i in $1/etc/xdg/lxsession/*/desktop.conf \
al@18899 53 $1/home/*/.config/lxsession/*/desktop.conf; do
al@18899 54 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Clearlooks Human|' $i
al@18899 55 done
al@18899 56 pgrep lxsession && lxsession -r
al@18899 57
al@18899 58 # Restore Openbox theme (SliTaz)
al@18899 59 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
al@18899 60 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
al@18899 61 done
al@18899 62 pgrep openbox && openbox --reconfigure
al@18899 63 }