wok diff openbox-theme-chrommo/receipt @ rev 19041

webian-shell: improvements in the variables
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 15 14:58:56 2016 +0200 (2016-04-15)
parents
children 15e6c6910ee3
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/openbox-theme-chrommo/receipt	Fri Apr 15 14:58:56 2016 +0200
     1.3 @@ -0,0 +1,48 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="openbox-theme-chrommo"
     1.7 +VERSION="20150601"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="Chrommo - theme for Openbox 3"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE="PublicDomain"
    1.12 +WEB_SITE="http://desktopstylish.tumblr.com/post/120497586780/chrommo-openbox-3-theme-download"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WGET_URL="https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlcms4OHBWTVBWMmc"
    1.15 +TAGS="hackdorte openbox"
    1.16 +
    1.17 +DEPENDS="openbox"
    1.18 +BUILD_DEPENDS=""
    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/Chrommo
    1.24 +	cp -a $src/chrommo/* $install/usr/share/themes/Chrommo
    1.25 +	chmod a-x $install/usr/share/themes/Chrommo/openbox-3/themerc
    1.26 +	chown -R root:root $install
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +	cp -a $install/* $fs
    1.33 +}
    1.34 +
    1.35 +post_install()
    1.36 +{
    1.37 +	# Set Openbox theme
    1.38 +	for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
    1.39 +		[ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Chrommo<|' $i
    1.40 +	done
    1.41 +	pgrep openbox >/dev/null && openbox --reconfigure
    1.42 +}
    1.43 +
    1.44 +pre_remove()
    1.45 +{
    1.46 +	# Restore Openbox theme (SliTaz)
    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|>[^<]*<|>SliTaz<|' $i
    1.49 +	done
    1.50 +	pgrep openbox >/dev/null && openbox --reconfigure
    1.51 +}