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

Use https://download.tuxfamily.org/ for some broken wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 25 14:36:45 2022 +0000 (2022-06-25)
parents c49ffc024a6c
children
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://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL"
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 }