wok view openbox-theme-chrommo/receipt @ rev 20670
Up speex (1.2.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 21 15:15:42 2019 +0100 (2019-01-21) |
parents | 887b3b11683d |
children | 03ccd15b9fa1 |
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"
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/Chrommo
22 cp -a $src/chrommo/* $install/usr/share/themes/Chrommo
23 chmod a-x $install/usr/share/themes/Chrommo/openbox-3/themerc
24 chown -R root:root $install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 cp -a $install/* $fs
31 }
33 post_install()
34 {
35 # Set Openbox theme
36 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
37 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Chrommo<|' $i
38 done
39 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
40 }
42 pre_remove()
43 {
44 # Restore Openbox theme (SliTaz)
45 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
46 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
47 done
48 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
49 }