wok view japanes-theme/receipt @ rev 25166
updated python-cffi (1.12.3 -> 1.15.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 01 11:13:57 2022 +0100 (2022-07-01) |
parents | 40fab26c175d |
children | 73f36875e5a7 |
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"
13 HOST_ARCH="any"
15 DEPENDS="gtk-clearlooks openbox"
16 BUILD_DEPENDS="wget"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed 's|}|}\n|g;s|</|</\n|g' | sed '/dateTime=/!d;s|.*dateTime=.||;s|T.*||;s|-||g;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir -p $install/usr/share/themes
29 cp -a $src/Japanes $install/usr/share/themes
31 # (fix warnings about unsupported options)
32 sed -i 's|^.*menuitemstyle|#&|; s|^.*listviewitemstyle|#&|;
33 s|^.*progressbarstyle|#&|' $install/usr/share/themes/Japanes/gtk-2.0/gtkrc
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/* $fs
40 }
42 post_install()
43 {
44 # Set GTK+ Theme
45 for i in $1/etc/xdg/lxsession/*/desktop.conf \
46 $1/home/*/.config/lxsession/*/desktop.conf; do
47 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Japanes|' $i
48 done
49 pgrep lxsession >/dev/null && lxsession -r
51 # Set Openbox theme
52 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
53 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Japanes<|' $i
54 done
55 pgrep openbox >/dev/null && openbox --reconfigure
56 }
58 pre_remove() {
59 # Restore GTK+ Theme (Clearlooks Human)
60 for i in $1/etc/xdg/lxsession/*/desktop.conf \
61 $1/home/*/.config/lxsession/*/desktop.conf; do
62 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Clearlooks Human|' $i
63 done
64 pgrep lxsession && lxsession -r
66 # Restore Openbox theme (SliTaz)
67 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
68 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
69 done
70 pgrep openbox && openbox --reconfigure
71 }