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

updated pulseaudio packages again (12.2 -> 13.0)
author Hans-G?nter Theisgen
date Fri Apr 03 13:47:09 2020 +0100 (2020-04-03)
parents 887b3b11683d
children 4ce52a0b72fd
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
al@18899 18 # Rules to configure and make the package.
al@18899 19 compile_rules()
al@18899 20 {
al@18899 21 mkdir -p $install/usr/share/themes
al@18899 22 cp -a $src/Japanes $install/usr/share/themes
al@18899 23
al@18899 24 # (fix warnings about unsupported options)
al@18899 25 sed -i 's|^.*menuitemstyle|#&|; s|^.*listviewitemstyle|#&|;
al@18899 26 s|^.*progressbarstyle|#&|' $install/usr/share/themes/Japanes/gtk-2.0/gtkrc
al@18899 27 }
al@18899 28
al@18899 29 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18899 30 genpkg_rules()
al@18899 31 {
al@18899 32 cp -a $install/* $fs
al@18899 33 }
al@18899 34
al@18899 35 post_install()
al@18899 36 {
al@18899 37 # Set GTK+ Theme
al@18899 38 for i in $1/etc/xdg/lxsession/*/desktop.conf \
al@18899 39 $1/home/*/.config/lxsession/*/desktop.conf; do
al@18899 40 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Japanes|' $i
al@18899 41 done
al@18899 42 pgrep lxsession >/dev/null && lxsession -r
al@18899 43
al@18899 44 # Set Openbox theme
al@18899 45 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
al@18899 46 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Japanes<|' $i
al@18899 47 done
al@18899 48 pgrep openbox >/dev/null && openbox --reconfigure
al@18899 49 }
al@18899 50
al@18899 51 pre_remove() {
al@18899 52 # Restore GTK+ Theme (Clearlooks Human)
al@18899 53 for i in $1/etc/xdg/lxsession/*/desktop.conf \
al@18899 54 $1/home/*/.config/lxsession/*/desktop.conf; do
al@18899 55 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Clearlooks Human|' $i
al@18899 56 done
al@18899 57 pgrep lxsession && lxsession -r
al@18899 58
al@18899 59 # Restore Openbox theme (SliTaz)
al@18899 60 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
al@18899 61 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
al@18899 62 done
al@18899 63 pgrep openbox && openbox --reconfigure
al@18899 64 }