diff --git a/data/gitea-theme/APKBUILD b/data/gitea-theme/APKBUILD index 831b0a7..a889613 100644 --- a/data/gitea-theme/APKBUILD +++ b/data/gitea-theme/APKBUILD @@ -3,7 +3,7 @@ . ../APKBUILD-data.template -pkgver=2022.04.01.01 +pkgver=2022.04.01.02 pkgrel=0 makedepends="imagemagick" source="logo.svg" @@ -15,7 +15,8 @@ build() { sizes="120 180 192 512 880" for i in $sizes; do 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 + magick -size "$i"x"$i" logo.svg logo-"$i".png done } @@ -25,6 +26,7 @@ package() { 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-880.png gitea-lg.png rx_install logo.svg logo.svg