Remove unused assets
This commit is contained in:
parent
d8015da4d9
commit
c9184d54eb
@ -3,16 +3,16 @@
|
||||
|
||||
. ../APKBUILD-data.template
|
||||
|
||||
pkgver=2022.04.02.01
|
||||
pkgver=2024.01.02.01
|
||||
pkgrel=0
|
||||
makedepends="imagemagick"
|
||||
source="logo.svg"
|
||||
_customroot="/usr/share/gitea/custom"
|
||||
_rx_installdir="$_customroot/public/img"
|
||||
_rx_installdir="$_customroot/public/assets/img"
|
||||
_rx_fperm=444 # Public, static resources
|
||||
|
||||
build() {
|
||||
sizes="120 180 192 512 880"
|
||||
sizes="180 512"
|
||||
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
|
||||
@ -20,17 +20,12 @@ build() {
|
||||
}
|
||||
|
||||
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
|
||||
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 favicon.svg
|
||||
rx_install logo.svg gitea-safari.svg
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
Loading…
Reference in New Issue
Block a user