Remove unused assets

This commit is contained in:
Alex D. 2024-03-30 18:39:11 +00:00
parent d8015da4d9
commit c9184d54eb
Signed by: caskd
GPG Key ID: F92BA85F61F4C173

View File

@ -3,16 +3,16 @@
. ../APKBUILD-data.template . ../APKBUILD-data.template
pkgver=2022.04.02.01 pkgver=2024.01.02.01
pkgrel=0 pkgrel=0
makedepends="imagemagick" makedepends="imagemagick"
source="logo.svg" source="logo.svg"
_customroot="/usr/share/gitea/custom" _customroot="/usr/share/gitea/custom"
_rx_installdir="$_customroot/public/img" _rx_installdir="$_customroot/public/assets/img"
_rx_fperm=444 # Public, static resources _rx_fperm=444 # Public, static resources
build() { build() {
sizes="120 180 192 512 880" sizes="180 512"
for i in $sizes; do for i in $sizes; do
msg "Scaling svg to $i" msg "Scaling svg to $i"
magick -size "$i"x"$i" logo.svg \( +clone -threshold 101% -fill white -draw 'circle %[fx:int(w/2)],%[fx:int(h/2)] %[fx:int(w/2)],%[fx:80+int(h/2)]' \) -channel-fx '| gray=>alpha' logo-"$i".png magick -size "$i"x"$i" logo.svg \( +clone -threshold 101% -fill white -draw 'circle %[fx:int(w/2)],%[fx:int(h/2)] %[fx:int(w/2)],%[fx:80+int(h/2)]' \) -channel-fx '| gray=>alpha' logo-"$i".png
@ -20,17 +20,12 @@ build() {
} }
package() { package() {
rx_install logo-120.png gitea-sm.png
rx_install logo-180.png favicon.png rx_install logo-180.png favicon.png
rx_install logo-180.png apple-touch-icon.png rx_install logo-180.png apple-touch-icon.png
rx_install logo-192.png gitea-192.png
rx_install logo-512.png gitea-512.png
rx_install logo-512.png logo.png rx_install logo-512.png logo.png
rx_install logo-880.png gitea-lg.png
rx_install logo.svg logo.svg rx_install logo.svg logo.svg
rx_install logo.svg favicon.svg rx_install logo.svg favicon.svg
rx_install logo.svg gitea-safari.svg
} }
sha512sums=" sha512sums="