wok-current view openbox-theme-blinder/receipt @ rev 20223

grub: add ext4 patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 01 10:11:27 2018 +0100 (2018-03-01)
parents 887b3b11683d
children c49ffc024a6c
line source
1 # SliTaz package receipt.
3 PACKAGE="openbox-theme-blinder"
4 VERSION="20150606"
5 CATEGORY="customization"
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"
13 HOST_ARCH="any"
15 DEPENDS="openbox"
16 BUILD_DEPENDS=""
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mkdir -p $install/usr/share/themes/Blinder
22 cp -a $src/* $install/usr/share/themes/Blinder
23 chown -R root:root $install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 cp -a $install/* $fs
30 }
32 post_install()
33 {
34 # Set Openbox theme
35 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
36 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Blinder<|' $i
37 done
38 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
39 }
41 pre_remove()
42 {
43 # Restore Openbox theme (SliTaz)
44 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
45 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
46 done
47 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
48 }