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