aports/data/gitea-theme/APKBUILD

43 lines
1.6 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>
pkgname=redxen-data-gitea-theme
2020-12-27 13:22:41 +00:00
pkgver=2020.12.27
2020-12-23 21:11:19 +00:00
pkgrel=0
pkgdesc="Gitea customization files"
url="https://git.redxen.eu/RedXen"
arch="noarch"
license="none"
depeds="gitea-redxen-config"
makedepends="imagemagick"
options="!check" # No checks possible
source="
logo.svg
redxen.css
"
builddir="$srcdir"
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
done
}
package() {
install -Dm644 logo-120.png "$pkgdir"/gitea/custom/public/img/gitea-sm.png
install -Dm644 logo-180.png "$pkgdir"/gitea/custom/public/img/favicon.png
install -Dm644 logo-180.png "$pkgdir"/gitea/custom/public/img/apple-touch-icon.png
install -Dm644 logo-192.png "$pkgdir"/gitea/custom/public/img/gitea-192.png
install -Dm644 logo-512.png "$pkgdir"/gitea/custom/public/img/gitea-512.png
install -Dm644 logo-880.png "$pkgdir"/gitea/custom/public/img/gitea-lg.png
install -Dm644 logo.svg "$pkgdir"/gitea/custom/public/img/favicon.svg
install -Dm644 logo.svg "$pkgdir"/gitea/custom/public/img/gitea-safari.svg
install -Dm644 redxen.css "$pkgdir"/gitea/custom/public/css/theme-redxen.css
}
sha512sums="d706ce4edaeccf6fbcea779a55046a20af136a3b9235e35f84c41e6f0aa7ddcae8fa3568d87e8d2f8be4f799c7cfd9f8b4b0ac653c0b4687d498eda25fc3864b logo.svg
2020-12-27 13:22:41 +00:00
1af76553c762e4a6f10d7da09b80c94142b9da9d2ed17813a7421cd31093a4d89dce45237120fdcbc04cf9b70e1fb48b0d122156fd4e4e1a2225ea085b0b5bc4 redxen.css"