aports/data/gitea-theme/APKBUILD

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-12-23 21:11:19 +00:00
# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
. ../APKBUILD-data.template
2022-04-01 10:32:21 +00:00
pkgver=2022.04.01.02
2020-12-29 18:30:07 +00:00
pkgrel=0
2020-12-23 21:11:19 +00:00
makedepends="imagemagick"
source="logo.svg"
_customroot="/usr/share/gitea/custom"
_rx_installdir="$_customroot/public/img"
_rx_fperm=444 # Public, static resources
2020-12-23 21:11:19 +00:00
build() {
sizes="120 180 192 512 880"
for i in $sizes; do
msg "Scaling svg to $i"
2022-04-01 10:32:21 +00:00
#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
2020-12-23 21:11:19 +00:00
done
}
package() {
rx_install logo-120.png gitea-sm.png
rx_install logo-180.png favicon.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
2022-04-01 10:32:21 +00:00
rx_install logo-512.png logo.png
rx_install logo-880.png gitea-lg.png
2020-12-23 21:11:19 +00:00
rx_install logo.svg logo.svg
rx_install logo.svg favicon.svg
rx_install logo.svg gitea-safari.svg
2020-12-23 21:11:19 +00:00
}
sha512sums="
2022-04-01 10:26:49 +00:00
aaa7ebe987779b52371d8d0931a2fd2014bc8a93308e1c84a287250724ab16652bc117a121caa45041ccb734abdf02862be57cea876826b8d895bca5033bb3fd logo.svg
"