From 8b57026beb4714dc4b262fa64d17f2f2155abbcf Mon Sep 17 00:00:00 2001 From: Sertonix Date: Wed, 27 Dec 2023 19:16:05 +0100 Subject: [PATCH] community/inkscape: add theme subpackages --- community/inkscape/APKBUILD | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/community/inkscape/APKBUILD b/community/inkscape/APKBUILD index 3ad6eb0de60..8948f37f645 100644 --- a/community/inkscape/APKBUILD +++ b/community/inkscape/APKBUILD @@ -3,7 +3,7 @@ pkgname=inkscape pkgver=1.3.2 _pkgdate=2023-11-25 _pkgcommit=091e20ef0f -pkgrel=0 +pkgrel=1 pkgdesc="Vector-based drawing program - svg compliant" url="https://inkscape.org/" arch="all" @@ -53,6 +53,10 @@ subpackages=" $pkgname-lang $pkgname-view $pkgname-bash-completion + $pkgname-minwaita::noarch + $pkgname-icon-theme-tango:_icon_theme:noarch + $pkgname-icon-theme-hicolor:_icon_theme:noarch + $pkgname-icon-theme-multicolor:_icon_theme:noarch " source="https://media.inkscape.org/dl/resources/file/inkscape-$pkgver.tar.xz" options="!check" # take extremely long and use absurd amounts of memory @@ -104,6 +108,26 @@ tutorials() { amove usr/share/inkscape/tutorials } +minwaita() { + depends= + pkgdesc="$pkgdesc (minwaita theme)" + install_if="$pkgname=$pkgver-r$pkgrel" + + amove usr/share/inkscape/themes/Minwaita-Inkscape +} + +_icon_theme() { + name="${subpkgname#"$pkgname"-icon-theme-}" + depends= + pkgdesc="$pkgdesc ($name icon theme)" + install_if="$pkgname=$pkgver-r$pkgrel" + + case "$name" in + tango) name=Tango;; + esac + amove usr/share/inkscape/icons/"$name" +} + libinkscape_base() { pkgdesc="base libinkscape_base.so to share with inkview"