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

linld: hide -b=<base_himem> argument
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 12 17:26:44 2020 +0000 (2020-12-12)
parents 40fab26c175d
children 77ec99338524
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="https://web.archive.org/web/20151101012710/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 }