From ab30ede5c5c374d84e00721ae91aaa1d5c714f68 Mon Sep 17 00:00:00 2001 From: Cyano Hao Date: Sat, 13 Apr 2024 17:45:55 +0800 Subject: [PATCH] Add rasterized icons in Arch Linux package (#383) * add rasterized icons in arch linux package * fix missing deps in chroot-ed build --- packages/archlinux/PKGBUILD.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/archlinux/PKGBUILD.in b/packages/archlinux/PKGBUILD.in index 4be8f74f..10f8415a 100644 --- a/packages/archlinux/PKGBUILD.in +++ b/packages/archlinux/PKGBUILD.in @@ -7,7 +7,7 @@ arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64' 'riscv64') url="https://github.com/royqh1979/$_pkgname" license=('GPL3') depends=(qt5-base qt5-svg gcc gdb) -makedepends=(qt5-tools) +makedepends=(qt5-tools imagemagick librsvg) optdepends=( 'clang: C/C++ compiler (alternative)' ) @@ -42,4 +42,13 @@ package() { cd redpanda-build make INSTALL_ROOT="$pkgdir" install + + for size in 16 22 24 32 36 48 64 72 96 128 192 256 512; do + mkdir -p "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps" + magick convert \ + -background none \ + "$pkgdir/usr/share/icons/hicolor/scalable/apps/redpandaide.svg" \ + -resize ${size}x${size} \ + "$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/redpandaide.png" + done }