wok view openbox-theme-blinder/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 15e6c6910ee3
line source
1 # SliTaz package receipt.
3 PACKAGE="openbox-theme-blinder"
4 VERSION="20150606"
5 CATEGORY="x-window"
6 SHORT_DESC="Blinder - theme for Openbox 3"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="PublicDomain"
9 WEB_SITE="http://desktopstylish.tumblr.com/post/120897023300/blinder-the-openbox-3-theme-download"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlQURSR3V5dzB4aXc"
12 TAGS="hackdorte openbox"
14 DEPENDS="openbox"
15 BUILD_DEPENDS=""
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir -p $install/usr/share/themes/Blinder
21 cp -a $src/* $install/usr/share/themes/Blinder
22 chown -R root:root $install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 cp -a $install/* $fs
29 }
31 post_install()
32 {
33 # Set Openbox theme
34 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
35 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Blinder<|' $i
36 done
37 pgrep openbox >/dev/null && openbox --reconfigure
38 }
40 pre_remove()
41 {
42 # Restore Openbox theme (SliTaz)
43 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
44 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
45 done
46 pgrep openbox >/dev/null && openbox --reconfigure
47 }