wok diff japanes-theme/receipt @ rev 19098

gettext: fix arm build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 03 22:10:36 2016 +0200 (2016-05-03)
parents
children 887b3b11683d
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/japanes-theme/receipt	Tue May 03 22:10:36 2016 +0200
     1.3 @@ -0,0 +1,63 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="japanes-theme"
     1.7 +VERSION="20130705"
     1.8 +CATEGORY="misc"
     1.9 +SHORT_DESC="Japanes Openbox and GTK2 Theme"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE="GPL3"
    1.12 +WEB_SITE="http://holkfoor.deviantart.com/art/Japanes-Openbox-and-GTK2-Theme-382947891"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WGET_URL="https://www.dropbox.com/s/2ronvzzogtdlmbt/Japanes_GTK2_and_Openbox.tar.bz2"
    1.15 +TAGS="holkfoor openbox"
    1.16 +
    1.17 +DEPENDS="gtk-clearlooks openbox"
    1.18 +BUILD_DEPENDS="wget"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	mkdir -p $install/usr/share/themes
    1.24 +	cp -a $src/Japanes $install/usr/share/themes
    1.25 +
    1.26 +	# (fix warnings about unsupported options)
    1.27 +	sed -i 's|^.*menuitemstyle|#&|; s|^.*listviewitemstyle|#&|;
    1.28 +		s|^.*progressbarstyle|#&|' $install/usr/share/themes/Japanes/gtk-2.0/gtkrc
    1.29 +}
    1.30 +
    1.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.32 +genpkg_rules()
    1.33 +{
    1.34 +	cp -a $install/* $fs
    1.35 +}
    1.36 +
    1.37 +post_install()
    1.38 +{
    1.39 +	# Set GTK+ Theme
    1.40 +	for i in $1/etc/xdg/lxsession/*/desktop.conf \
    1.41 +		$1/home/*/.config/lxsession/*/desktop.conf; do
    1.42 +		[ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Japanes|' $i
    1.43 +	done
    1.44 +	pgrep lxsession >/dev/null && lxsession -r
    1.45 +
    1.46 +	# Set Openbox theme
    1.47 +	for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
    1.48 +		[ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Japanes<|' $i
    1.49 +	done
    1.50 +	pgrep openbox >/dev/null && openbox --reconfigure
    1.51 +}
    1.52 +
    1.53 +pre_remove() {
    1.54 +	# Restore GTK+ Theme (Clearlooks Human)
    1.55 +	for i in $1/etc/xdg/lxsession/*/desktop.conf \
    1.56 +		$1/home/*/.config/lxsession/*/desktop.conf; do
    1.57 +		[ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Clearlooks Human|' $i
    1.58 +	done
    1.59 +	pgrep lxsession && lxsession -r
    1.60 +
    1.61 +	# Restore Openbox theme (SliTaz)
    1.62 +	for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
    1.63 +		[ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
    1.64 +	done
    1.65 +	pgrep openbox && openbox --reconfigure
    1.66 +}