wok-next view openbox-theme-chrommo/receipt @ rev 20458

Unlock x86_64 architecture
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 12:12:14 2018 +0200 (2018-03-02)
parents 40fab26c175d
children
line source
1 # SliTaz package receipt.
3 PACKAGE="openbox-theme-chrommo"
4 VERSION="20150601"
5 CATEGORY="customization"
6 SHORT_DESC="Chrommo - theme for Openbox 3"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="PublicDomain"
9 WEB_SITE="http://desktopstylish.tumblr.com/post/120497586780/chrommo-openbox-3-theme-download"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlcms4OHBWTVBWMmc"
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/Chrommo
21 cp -a $src/chrommo/* $install/usr/share/themes/Chrommo
22 chmod a-x $install/usr/share/themes/Chrommo/openbox-3/themerc
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|>[^<]*<|>Chrommo<|' $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 }