wok diff openbox-theme-blinder/receipt @ rev 18978
Up tazlito(418)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Mar 14 14:14:36 2016 +0200 (2016-03-14) |
parents | |
children | 15e6c6910ee3 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/openbox-theme-blinder/receipt Mon Mar 14 14:14:36 2016 +0200 1.3 @@ -0,0 +1,47 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="openbox-theme-blinder" 1.7 +VERSION="20150606" 1.8 +CATEGORY="x-window" 1.9 +SHORT_DESC="Blinder - theme for Openbox 3" 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +LICENSE="PublicDomain" 1.12 +WEB_SITE="http://desktopstylish.tumblr.com/post/120897023300/blinder-the-openbox-3-theme-download" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 +WGET_URL="https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlQURSR3V5dzB4aXc" 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/Blinder 1.24 + cp -a $src/* $install/usr/share/themes/Blinder 1.25 + chown -R root:root $install 1.26 +} 1.27 + 1.28 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.29 +genpkg_rules() 1.30 +{ 1.31 + cp -a $install/* $fs 1.32 +} 1.33 + 1.34 +post_install() 1.35 +{ 1.36 + # Set Openbox theme 1.37 + for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do 1.38 + [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Blinder<|' $i 1.39 + done 1.40 + pgrep openbox >/dev/null && openbox --reconfigure 1.41 +} 1.42 + 1.43 +pre_remove() 1.44 +{ 1.45 + # Restore Openbox theme (SliTaz) 1.46 + for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do 1.47 + [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i 1.48 + done 1.49 + pgrep openbox >/dev/null && openbox --reconfigure 1.50 +}