wok-next view japanes-theme/receipt @ rev 20806
I. node update: security -> https://nodejs.org/en/blog/vulnerability/june-2018-security-releases/ 9.5.0 -> 9.11.2 II. add checksum
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Wed Jun 13 08:26:54 2018 +0000 (2018-06-13) |
parents | c4e53a39395a |
children | d5aab818505e |
line source
1 # SliTaz package receipt.
3 PACKAGE="japanes-theme"
4 VERSION="20130705"
5 CATEGORY="customization"
6 SHORT_DESC="Japanes Openbox and GTK2 Theme"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="http://holkfoor.deviantart.com/art/Japanes-Openbox-and-GTK2-Theme-382947891"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="https://www.dropbox.com/s/2ronvzzogtdlmbt/Japanes_GTK2_and_Openbox.tar.bz2"
12 TAGS="holkfoor openbox"
14 DEPENDS="gtk-clearlooks openbox"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 mkdir -p $install/usr/share/themes
20 cp -a $src/Japanes $install/usr/share/themes
22 # (fix warnings about unsupported options)
23 sed -i 's|^.*menuitemstyle|#&|; s|^.*listviewitemstyle|#&|;
24 s|^.*progressbarstyle|#&|' $install/usr/share/themes/Japanes/gtk-2.0/gtkrc
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 GTK+ Theme
36 for i in $1/etc/xdg/lxsession/*/desktop.conf \
37 $1/home/*/.config/lxsession/*/desktop.conf; do
38 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Japanes|' $i
39 done
40 pgrep lxsession >/dev/null && lxsession -r
42 # Set Openbox theme
43 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
44 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Japanes<|' $i
45 done
46 pgrep openbox >/dev/null && openbox --reconfigure
47 }
49 pre_remove() {
50 # Restore GTK+ Theme (Clearlooks Human)
51 for i in $1/etc/xdg/lxsession/*/desktop.conf \
52 $1/home/*/.config/lxsession/*/desktop.conf; do
53 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Clearlooks Human|' $i
54 done
55 pgrep lxsession && lxsession -r
57 # Restore Openbox theme (SliTaz)
58 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
59 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
60 done
61 pgrep openbox && openbox --reconfigure
62 }