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

gtk3: added build dependency libxtst
author Hans-G?nter Theisgen
date Tue Aug 04 17:36:05 2020 +0100 (2020-08-04)
parents dca46e53bdc7
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="hackdorte-artwork"
4 VERSION="2.0"
5 CATEGORY="meta"
6 SHORT_DESC="SliTaz artwork by Leonardo Laporte"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="PublicDomain GPL3 CC-BY"
9 WEB_SITE="https://github.com/SliTaz-official/hackdorte-artwork"
10 HOST_ARCH="any"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/SliTaz-official/hackdorte-artwork/archive/$VERSION.tar.gz"
15 SPLIT="blinder-theme chrommo-theme woodland-theme sandfive-theme \
16 slim-theme-clean slim-theme-esperanza slim-theme-japan-art slim-theme-leaves \
17 slim-theme-montanhoso conky-theme-onsea slitaz-backgrounds aurorials-theme \
18 japanes-theme madeirado-theme slim-theme-control slim-theme-pilar \
19 slim-theme-radarspider slim-theme-robotic slim-theme-sandfive"
21 COOKOPTS="!pngquant" # SLiM don't like such images processed by pngquant
23 compile_rules() {
24 mkdir -p $install/usr/share/
25 cp -r conky/ images/ slim/ themes/ $install/usr/share/
27 # Aurorials theme: fix warnings about unsupported options
28 sed -i 's|^.*gradients|#&|' $install/usr/share/themes/Aurorials/gtk-2.0/gtkrc
30 # Aurorials theme: link the same image
31 rm $install/usr/share/images/Aurorials.png
32 ln -s ../slim/themes/Aurorials/background.png $install/usr/share/images/Aurorials.png
34 # Japanes theme: fix warnings about unsupported options
35 sed -i 's|^.*menuitemstyle|#&|; s|^.*listviewitemstyle|#&|;
36 s|^.*progressbarstyle|#&|' $install/usr/share/themes/Japanes/gtk-2.0/gtkrc
38 # Madeirado theme: fix warnings about unsupported options
39 sed -i 's|^.*menuitemstyle|#&|; s|^.*listviewitemstyle|#&|;
40 s|^.*progressbarstyle|#&|' $install/usr/share/themes/Madeirado/gtk-2.0/gtkrc
42 # Madeirado theme: link the same image
43 rm $install/usr/share/images/madeirado.png
44 ln -s ../slim/themes/Madeirado/background.png $install/usr/share/images/Madeirado.png
45 }
47 genpkg_rules() {
48 case $PACKAGE in
49 hackdorte-artwork)
50 DEPENDS="$SPLIT"
51 ;;
52 blinder-theme)
53 copy Blinder/
54 CAT="customization|Blinder theme for GTK+2 and Openbox3"
55 TAGS="hackdorte openbox theme"
56 # openbox-theme-blinder 20150606
57 # https://web.archive.org/web/20151101012710/http://desktopstylish.tumblr.com/post/120897023300/blinder-the-openbox-3-theme-download
58 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlQURSR3V5dzB4aXc
59 ;;
60 chrommo-theme)
61 copy Chrommo/
62 CAT="customization|Chrommo theme for GTK+2 and Openbox3"
63 TAGS="hackdorte openbox theme"
64 # openbox-theme-chrommo 20150601
65 # http://desktopstylish.tumblr.com/post/120497586780/chrommo-openbox-3-theme-download
66 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlcms4OHBWTVBWMmc
67 ;;
68 woodland-theme)
69 copy Woodland/
70 CAT="customization|Woodland nature theme for Openbox3"
71 TAGS="hackdorte openbox theme"
72 # openbox-theme-woodland 1.0
73 # https://web.archive.org/web/20151101012710/http://desktopstylish.tumblr.com/post/120897023300/blinder-the-openbox-3-theme-download
74 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlQURSR3V5dzB4aXc
75 # http://people.slitaz.org/~leonardolaporte/lab.slitaz/5.0/pkg/openbox/3.6.1/openbox-theme-woodland-1.0.tar.gz
76 ;;
77 sandfive-theme)
78 copy SliTaz-SandFive/
79 CAT="customization|complete SliTaz 5.0 SandFive theme"
80 # sandfive-theme 1.0
81 # http://elegantspider.blogspot.com.br/2014/06/slitaz-sand-five-theme.html
82 # sources was in the stuff near the receipt
83 ;;
84 slim-theme-clean)
85 copy Clean/
86 DEPENDS="slim"
87 CAT="customization|Clean theme for SLiM"
88 TAGS="hackdorte slim"
89 # slim-theme-clean 20150602
90 # http://desktopstylish.tumblr.com/post/120566561330/clean-slim-theme-download
91 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlczlac2tXa01wbTQ
92 ;;
93 slim-theme-esperanza)
94 copy Esperanza/
95 DEPENDS="slim"
96 CAT="customization|Esperanza theme for SLiM"
97 TAGS="hackdorte slim"
98 # slim-theme-esperanza 20150602
99 # http://desktopstylish.tumblr.com/post/120505013200/esperanza-slim-theme-download
100 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqldmFkeEcyXzRpLVk
101 ;;
102 slim-theme-japan-art)
103 copy JapanArt/
104 DEPENDS="slim"
105 CAT="customization|Japan Art theme for SLiM"
106 TAGS="hackdorte slim"
107 # slim-theme-japan-art 20150603
108 # http://desktopstylish.tumblr.com/post/120590949085/japan-art-slim-theme-download
109 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlUkJHVDJrXzVFRUk
110 ;;
111 slim-theme-leaves)
112 copy Leaves/
113 DEPENDS="slim"
114 CAT="customization|Leaves theme for SLiM"
115 TAGS="hackdorte slim"
116 # slim-theme-leaves 20150602
117 # http://desktopstylish.tumblr.com/post/120510224250/leaves-slim-theme-download
118 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqldkFkbmRCRFZVQ0k
119 ;;
120 slim-theme-montanhoso)
121 copy Montanhoso/
122 DEPENDS="slim"
123 CAT="customization|Montanhoso theme for SLiM"
124 TAGS="hackdorte slim"
125 # slim-theme-montanhoso 20150526
126 # http://desktopstylish.tumblr.com/post/120406192590/montanhoso-theme-for-the-slim-login-manager
127 # https://drive.google.com/uc?export=download&id=0B4Re2DvqOMqlTXZZRDJWaFI4NkE
128 ;;
129 conky-theme-onsea)
130 copy onsea/
131 CAT="customization|smooth theme for conky with smoke color"
132 ;;
133 slitaz-backgrounds)
134 copy slitaz-bg-control.png slitaz-bg-core.png slitaz-bg-enigma.png \
135 slitaz-bg-fusion.png slitaz-bg-lights.png slitaz-bg-panel.png \
136 slitaz-bg-sand.png slitaz-bg-spiders-eyes.png slitaz-bg-voyage.png \
137 slitaz-bg-wood.png slitaz-black-floral.png slitaz-black-zen.png \
138 slitaz-dust.png slitaz-meditation.jpg slitaz-secret-orion.png \
139 slitaz-the-force.png slitaz-varnish.png slitaz-woodland.jpg
140 CAT="customization|additional backgrounds for Slitaz GNU/Linux"
141 # slitaz-backgrounds 2.1
142 # https://github.com/hackdorte/slitaz-backgrounds
143 # https://github.com/hackdorte/slitaz-backgrounds/archive/8f027a0.tar.gz
144 ;;
145 aurorials-theme)
146 copy Aurorials/ Aurorials.png
147 CAT="customization|Aurorials theme for GTK2, Openbox, SLiM, and wallpaper"
148 LICENSE="GPL3"
149 DEPENDS="gtk2-engine-murrine openbox slim"
150 TAGS="holkfoor openbox slim wallpaper"
151 # https://www.deviantart.com/holkfoor/art/Aurorials-pack-themes-382752941
152 # https://dl.dropboxusercontent.com/s/urt40kxaladwpeu/Aurorials_GTK2_Openbox_Slim_Wallpaper.tar.bz2
153 ;;
154 japanes-theme)
155 copy Japanes/
156 CAT="customization|Japanes Openbox and GTK2 Theme"
157 LICENSE="GPL3"
158 DEPENDS="gtk-clearlooks openbox"
159 TAGS="holkfoor openbox"
160 # https://www.deviantart.com/holkfoor/art/Japanes-Openbox-and-GTK2-Theme-382947891
161 # https://www.dropbox.com/s/2ronvzzogtdlmbt/Japanes_GTK2_and_Openbox.tar.bz2
162 ;;
163 madeirado-theme)
164 copy Madeirado/ Madeirado.png
165 CAT="customization|Madeirado theme for GTK2, Openbox, SLiM, and wallparer"
166 LICENSE="GPL3"
167 DEPENDS="gtk-clearlooks openbox slim"
168 TAGS="holkfoor openbox slim wallpaper"
169 # https://www.deviantart.com/holkfoor/art/Madeirado-Pack-Theme-382214228
170 # https://dl.dropboxusercontent.com/s/ax6iqx6aa344fsu/Madeirado_GTK2_Openbox_Slim_Wallpaper.tar.bz2
171 ;;
172 slim-theme-control)
173 copy control/
174 CAT="customization|Control - theme for SLiM"
175 LICENSE="CC-BY"
176 DEPENDS="slim slitaz-configs-base"
177 ;;
178 slim-theme-pilar)
179 copy pilar/
180 CAT="customization|Pilar - theme for SLiM"
181 LICENSE="CC-BY"
182 DEPENDS="slim slitaz-configs-base"
183 ;;
184 slim-theme-radarspider)
185 copy radarspider/
186 CAT="customization|Radar Spider - theme for SLiM"
187 LICENSE="CC-BY"
188 DEPENDS="slim slitaz-configs-base"
189 ;;
190 slim-theme-robotic)
191 copy robotic/
192 CAT="customization|Robotic - theme for SLiM"
193 LICENSE="CC-BY"
194 DEPENDS="slim slitaz-configs-base"
195 ;;
196 slim-theme-sandfive)
197 copy sandfive/
198 CAT="customization|SliTaz SandFive - theme for SLiM"
199 LICENSE="CC-BY"
200 DEPENDS="slim slitaz-configs-base"
201 ;;
202 esac
203 }
206 # Set Openbox theme
207 post_install_blinder_theme() {
208 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
209 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Blinder<|' $i
210 done
211 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
212 }
214 # Restore Openbox theme (SliTaz)
215 pre_remove_blinder_theme() {
216 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
217 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
218 done
219 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
220 }
223 # Set Openbox theme
224 post_install_chrommo_theme() {
225 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
226 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Chrommo<|' $i
227 done
228 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
229 }
231 # Restore Openbox theme (SliTaz)
232 pre_remove_chrommo_theme() {
233 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
234 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
235 done
236 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
237 }
240 # Set Openbox theme
241 post_install_woodland_theme() {
242 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
243 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Woodland<|' $i
244 done
245 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
246 }
248 # Restore Openbox theme (SliTaz)
249 pre_remove_woodland_theme() {
250 for i in $1/etc/xdg/openbox/rc.xml $1/home/*/.config/openbox/rc.xml; do
251 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
252 done
253 [ -z "$1" ] && pgrep openbox >/dev/null && openbox --reconfigure
254 }
257 post_install_slim_theme_clean() {
258 chroot "$1/" slim-theme -s Clean
259 }
261 pre_remove_slim_theme_clean() {
262 chroot "$1/" slim-theme -f Clean
263 }
266 post_install_slim_theme_esperanza() {
267 chroot "$1/" slim-theme -s Esperanza
268 }
270 pre_remove_slim_theme_esperanza() {
271 chroot "$1/" slim-theme -f Esperanza
272 }
275 post_install_slim_theme_japan_art() {
276 chroot "$1/" slim-theme -s JapanArt
277 }
279 pre_remove_slim_theme_japan_art() {
280 chroot "$1/" slim-theme -f JapanArt
281 }
284 post_install_slim_theme_leaves() {
285 chroot "$1/" slim-theme -s Leaves
286 }
288 pre_remove_slim_theme_leaves() {
289 chroot "$1/" slim-theme -f Leaves
290 }
293 post_install_slim_theme_montanhoso() {
294 chroot "$1/" slim-theme -s Montanhoso
295 }
297 pre_remove_slim_theme_montanhoso() {
298 chroot "$1/" slim-theme -f Montanhoso
299 }
302 post_install_conky_theme_onsea() {
303 for i in $1/home/*; do
304 [ -e $i/.conkyrc ] || return
305 mv $i/.conkyrc $i/.conkyrc.bak
306 ln -s /usr/share/conky/themes/onsea/.conkyrc $i/.conkyrc
307 done
308 }
310 post_remove_conky_theme_onsea() {
311 for i in $1/home/*; do
312 [ -e $i/.conkyrc.bak ] || return
313 rm $i/.conkyrc
314 mv $i/.conkyrc.bak $i/.conkyrc
315 done
316 }
319 post_install_aurorials_theme() {
320 # Set GTK+ Theme
321 for i in $1/etc/xdg/lxsession/*/desktop.conf \
322 $1/home/*/.config/lxsession/*/desktop.conf; do
323 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Aurorials|' $i
324 done
325 pgrep lxsession >/dev/null && lxsession -r
327 # Set Openbox theme
328 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
329 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Aurorials<|' $i
330 done
331 pgrep openbox >/dev/null && openbox --reconfigure
333 # Set SLiM theme
334 chroot "$1/" slim-theme -s Aurorials
336 # Set PCManFM wallpaper
337 for i in $1/etc/xdg/pcmanfm/default/pcmanfm.conf \
338 $1/home/*/.config/pcmanfm/*/*.conf; do
339 [ -f "$i" ] && sed -i 's|wallpaper[0-9]*=.*|wallpaper=/usr/share/images/Aurorials.jpg|' $i
340 done
341 if [ -z "$1" -a -n "$(pgrep pcmanfm)" ]; then
342 # Change wallpaper for current PCManFM session right now
343 su -c 'pcmanfm -w /usr/share/images/Aurorials.jpg' \
344 $(ps aux | grep '[p]cmanfm' | awk 'END{print $2}')
345 fi
346 }
348 pre_remove_aurorials_theme() {
349 # Restore GTK+ Theme (Clearlooks Human)
350 for i in $1/etc/xdg/lxsession/*/desktop.conf \
351 $1/home/*/.config/lxsession/*/desktop.conf; do
352 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Clearlooks Human|' $i
353 done
354 pgrep lxsession >/dev/null && lxsession -r
356 # Restore Openbox theme (SliTaz)
357 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
358 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
359 done
360 pgrep openbox >/dev/null && openbox --reconfigure
362 # Restore SLiM theme
363 chroot "$1/" slim-theme -f Madeirado
365 # Restore PCManFM wallpaper (slitaz-background.jpg)
366 for i in $1/etc/xdg/pcmanfm/default/pcmanfm.conf \
367 $1/home/*/.config/pcmanfm/*/*.conf; do
368 [ -f "$i" ] && sed -i 's|wallpaper[0-9]*=.*|wallpaper=/usr/share/images/slitaz-background.jpg|' $i
369 done
370 if [ -z "$1" -a -n "$(pgrep pcmanfm)" ]; then
371 # Change wallpaper for current PCManFM session right now
372 su -c 'pcmanfm -w /usr/share/images/slitaz-background.jpg' \
373 $(ps aux | grep '[p]cmanfm' | awk 'END{print $2}')
374 fi
375 }
378 post_install_japanes_theme() {
379 # Set GTK+ Theme
380 for i in $1/etc/xdg/lxsession/*/desktop.conf \
381 $1/home/*/.config/lxsession/*/desktop.conf; do
382 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Japanes|' $i
383 done
384 pgrep lxsession >/dev/null && lxsession -r
386 # Set Openbox theme
387 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
388 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Japanes<|' $i
389 done
390 pgrep openbox >/dev/null && openbox --reconfigure
391 }
393 pre_remove_japanes_theme() {
394 # Restore GTK+ Theme (Clearlooks Human)
395 for i in $1/etc/xdg/lxsession/*/desktop.conf \
396 $1/home/*/.config/lxsession/*/desktop.conf; do
397 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Clearlooks Human|' $i
398 done
399 pgrep lxsession && lxsession -r
401 # Restore Openbox theme (SliTaz)
402 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
403 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
404 done
405 pgrep openbox && openbox --reconfigure
406 }
409 post_install_madeirado_theme() {
410 # Set GTK+ Theme
411 for i in $1/etc/xdg/lxsession/*/desktop.conf \
412 $1/home/*/.config/lxsession/*/desktop.conf; do
413 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Madeirado|' $i
414 done
415 pgrep lxsession >/dev/null && lxsession -r
417 # Set Openbox theme
418 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
419 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>Madeirado<|' $i
420 done
421 pgrep openbox >/dev/null && openbox --reconfigure
423 # Set SLiM theme
424 chroot "$1/" slim-theme -s Madeirado
426 # Set PCManFM wallpaper
427 for i in $1/etc/xdg/pcmanfm/default/pcmanfm.conf \
428 $1/home/*/.config/pcmanfm/*/*.conf; do
429 [ -f "$i" ] && sed -i 's|wallpaper[0-9]*=.*|wallpaper=/usr/share/images/Madeirado.png|' $i
430 done
431 if [ -z "$1" -a -n "$(pgrep pcmanfm)" ]; then
432 # Change wallpaper for current PCManFM session right now
433 su -c 'pcmanfm -w /usr/share/images/Madeirado.jpg' \
434 $(ps aux | grep '[p]cmanfm' | awk 'END{print $2}')
435 fi
436 }
438 pre_remove_madeirado_theme() {
439 # Restore GTK+ Theme (Clearlooks Human)
440 for i in $1/etc/xdg/lxsession/*/desktop.conf \
441 $1/home/*/.config/lxsession/*/desktop.conf; do
442 [ -f "$i" ] && sed -i 's|sNet/ThemeName=.*|sNet/ThemeName=Clearlooks Human|' $i
443 done
444 pgrep lxsession >/dev/null && lxsession -r
446 # Restore Openbox theme (SliTaz)
447 for i in /etc/xdg/openbox/rc.xml /home/*/.config/openbox/rc.xml; do
448 [ -f $i ] && sed -i '/<theme>/,/<name>/ s|>[^<]*<|>SliTaz<|' $i
449 done
450 pgrep openbox >/dev/null && openbox --reconfigure
452 # Restore SLiM theme
453 chroot "$1/" slim-theme -f Madeirado
455 # Restore PCManFM wallpaper (slitaz-background.jpg)
456 for i in $1/etc/xdg/pcmanfm/default/pcmanfm.conf \
457 $1/home/*/.config/pcmanfm/*/*.conf; do
458 [ -f "$i" ] && sed -i 's|wallpaper[0-9]*=.*|wallpaper=/usr/share/images/slitaz-background.jpg|' $i
459 done
460 if [ -z "$1" -a -n "$(pgrep pcmanfm)" ]; then
461 # Change wallpaper for current PCManFM session right now
462 su -c 'pcmanfm -w /usr/share/images/slitaz-background.jpg' \
463 $(ps aux | grep '[p]cmanfm' | awk 'END{print $2}')
464 fi
465 }
468 post_install_slim_theme_control() {
469 chroot "$1/" slim-theme -scontrol
470 }
472 pre_remove_slim_theme_control() {
473 chroot "$1/" slim-theme -fcontrol
474 }
477 post_install_slim_theme_pilar() {
478 chroot "$1/" slim-theme -spilar
479 }
481 pre_remove_slim_theme_pilar() {
482 chroot "$1/" slim-theme -fpilar
483 }
486 post_install_slim_theme_radarspider() {
487 chroot "$1/" slim-theme -sradarspider
488 }
490 pre_remove_slim_theme_radarspider() {
491 chroot "$1/" slim-theme -fradarspider
492 }
495 post_install_slim_theme_robotic() {
496 chroot "$1/" slim-theme -srobotic
497 }
499 pre_remove_slim_theme_robotic() {
500 chroot "$1/" slim-theme -frobotic
501 }
504 post_install_slim_theme_sandfive() {
505 chroot "$1/" slim-theme -ssandfive
506 }
508 pre_remove_slim_theme_sandfive() {
509 chroot "$1/" slim-theme -fsandfive
510 }