wok-next view hackdorte-artwork/receipt @ rev 21010

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 12 16:40:30 2018 +0300 (2018-10-12)
parents d59f3b205c9c
children dca46e53bdc7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="hackdorte-artwork"
4 VERSION="1.0"
5 CATEGORY="meta"
6 SHORT_DESC="SliTaz artwork by Leonardo Laporte"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="PublicDomain"
9 WEB_SITE="https://github.com/SliTaz-official/hackdorte-artwork"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/SliTaz-official/hackdorte-artwork/archive/$VERSION.tar.gz"
14 SPLIT="blinder-theme chrommo-theme woodland-theme sandfive-theme \
15 slim-theme-clean slim-theme-esperanza slim-theme-japan-art slim-theme-leaves \
16 slim-theme-montanhoso conky-theme-onsea slitaz-backgrounds"
18 COOKOPTS="!pngquant" # SLiM don't like such images processed by pngquant
20 compile_rules() {
21 mkdir -p $install/usr/share/
22 cp -r conky/ images/ slim/ themes/ $install/usr/share/
23 }
25 genpkg_rules() {
26 case $PACKAGE in
27 hackdorte-artwork)
28 DEPENDS="$SPLIT"
29 ;;
30 blinder-theme)
31 copy Blinder/
32 CAT="customization|Blinder theme for GTK+2 and Openbox3"
33 TAGS="hackdorte openbox theme"
34 # openbox-theme-blinder 20150606
35 # https://web.archive.org/web/20151101012710/http://desktopstylish.tumblr.com/post/120897023300/blinder-the-openbox-3-theme-download
36 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlQURSR3V5dzB4aXc
37 ;;
38 chrommo-theme)
39 copy Chrommo/
40 CAT="customization|Chrommo theme for GTK+2 and Openbox3"
41 TAGS="hackdorte openbox theme"
42 # openbox-theme-chrommo 20150601
43 # http://desktopstylish.tumblr.com/post/120497586780/chrommo-openbox-3-theme-download
44 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlcms4OHBWTVBWMmc
45 ;;
46 woodland-theme)
47 copy Woodland/
48 CAT="customization|Woodland nature theme for Openbox3"
49 TAGS="hackdorte openbox theme"
50 # openbox-theme-woodland 1.0
51 # https://web.archive.org/web/20151101012710/http://desktopstylish.tumblr.com/post/120897023300/blinder-the-openbox-3-theme-download
52 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlQURSR3V5dzB4aXc
53 # http://people.slitaz.org/~leonardolaporte/lab.slitaz/5.0/pkg/openbox/3.6.1/openbox-theme-woodland-1.0.tar.gz
54 ;;
55 sandfive-theme)
56 copy SliTaz-SandFive/
57 CAT="customization|complete SliTaz 5.0 SandFive theme"
58 # sandfive-theme 1.0
59 # http://elegantspider.blogspot.com.br/2014/06/slitaz-sand-five-theme.html
60 # sources was in the stuff near the receipt
61 ;;
62 slim-theme-clean)
63 copy Clean/
64 DEPENDS="slim"
65 CAT="customization|Clean theme for SLiM"
66 TAGS="hackdorte slim"
67 # slim-theme-clean 20150602
68 # http://desktopstylish.tumblr.com/post/120566561330/clean-slim-theme-download
69 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlczlac2tXa01wbTQ
70 ;;
71 slim-theme-esperanza)
72 copy Esperanza/
73 DEPENDS="slim"
74 CAT="customization|Esperanza theme for SLiM"
75 TAGS="hackdorte slim"
76 # slim-theme-esperanza 20150602
77 # http://desktopstylish.tumblr.com/post/120505013200/esperanza-slim-theme-download
78 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqldmFkeEcyXzRpLVk
79 ;;
80 slim-theme-japan-art)
81 copy JapanArt/
82 DEPENDS="slim"
83 CAT="customization|Japan Art theme for SLiM"
84 TAGS="hackdorte slim"
85 # slim-theme-japan-art 20150603
86 # http://desktopstylish.tumblr.com/post/120590949085/japan-art-slim-theme-download
87 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlUkJHVDJrXzVFRUk
88 ;;
89 slim-theme-leaves)
90 copy Leaves/
91 DEPENDS="slim"
92 CAT="customization|Leaves theme for SLiM"
93 TAGS="hackdorte slim"
94 # slim-theme-leaves 20150602
95 # http://desktopstylish.tumblr.com/post/120510224250/leaves-slim-theme-download
96 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqldkFkbmRCRFZVQ0k
97 ;;
98 slim-theme-montanhoso)
99 copy Montanhoso/
100 DEPENDS="slim"
101 CAT="customization|Montanhoso theme for SLiM"
102 TAGS="hackdorte slim"
103 # slim-theme-montanhoso 20150526
104 # http://desktopstylish.tumblr.com/post/120406192590/montanhoso-theme-for-the-slim-login-manager
105 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlTXZZRDJWaFI4NkE
106 ;;
107 conky-theme-onsea)
108 copy onsea/
109 CAT="customization|smooth theme for conky with smoke color"
110 ;;
111 slitaz-backgrounds)
112 copy slitaz-bg-control.png slitaz-bg-core.png slitaz-bg-enigma.png \
113 slitaz-bg-fusion.png slitaz-bg-lights.png slitaz-bg-panel.png \
114 slitaz-bg-sand.png slitaz-bg-spiders-eyes.png slitaz-bg-voyage.png \
115 slitaz-bg-wood.png slitaz-black-floral.png slitaz-black-zen.png \
116 slitaz-dust.png slitaz-meditation.jpg slitaz-secret-orion.png \
117 slitaz-the-force.png slitaz-varnish.png slitaz-woodland.jpg
118 CAT="customization|additional backgrounds for Slitaz GNU/Linux"
119 # slitaz-backgrounds 2.1
120 # https://github.com/hackdorte/slitaz-backgrounds
121 # https://github.com/hackdorte/slitaz-backgrounds/archive/8f027a0.tar.gz
122 esac
123 }
126 # Set Openbox theme
127 post_install_blinder_theme() {
128 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
129 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Blinder<|' $i
130 done
131 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
132 }
134 # Restore Openbox theme (SliTaz)
135 pre_remove_blinder_theme() {
136 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
137 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
138 done
139 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
140 }
143 # Set Openbox theme
144 post_install_chrommo_theme() {
145 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
146 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Chrommo<|' $i
147 done
148 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
149 }
151 # Restore Openbox theme (SliTaz)
152 pre_remove_chrommo_theme() {
153 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
154 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
155 done
156 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
157 }
160 # Set Openbox theme
161 post_install_woodland_theme() {
162 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
163 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Woodland<|' $i
164 done
165 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
166 }
168 # Restore Openbox theme (SliTaz)
169 pre_remove_woodland_theme() {
170 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
171 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
172 done
173 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
174 }
177 post_install_slim_theme_clean() {
178 chroot "$1/" slim-theme -s Clean
179 }
181 pre_remove_slim_theme_clean() {
182 chroot "$1/" slim-theme -f Clean
183 }
186 post_install_slim_theme_esperanza() {
187 chroot "$1/" slim-theme -s Esperanza
188 }
190 pre_remove_slim_theme_esperanza() {
191 chroot "$1/" slim-theme -f Esperanza
192 }
195 post_install_slim_theme_japan_art() {
196 chroot "$1/" slim-theme -s JapanArt
197 }
199 pre_remove_slim_theme_japan_art() {
200 chroot "$1/" slim-theme -f JapanArt
201 }
204 post_install_slim_theme_leaves() {
205 chroot "$1/" slim-theme -s Leaves
206 }
208 pre_remove_slim_theme_leaves() {
209 chroot "$1/" slim-theme -f Leaves
210 }
213 post_install_slim_theme_montanhoso() {
214 chroot "$1/" slim-theme -s Montanhoso
215 }
217 pre_remove_slim_theme_montanhoso() {
218 chroot "$1/" slim-theme -f Montanhoso
219 }
222 post_install_conky_theme_onsea() {
223 for i in $1/home/*; do
224 [ -e $i/.conkyrc ] || return
225 mv $i/.conkyrc $i/.conkyrc.bak
226 ln -s /usr/share/conky/themes/onsea/.conkyrc $i/.conkyrc
227 done
228 }
230 post_remove_conky_theme_onsea() {
231 for i in $1/home/*; do
232 [ -e $i/.conkyrc.bak ] || return
233 rm $i/.conkyrc
234 mv $i/.conkyrc.bak $i/.conkyrc
235 done
236 }