From 3afcd215a78c238e8bb6eb2cc9a99aa1da0fcf3b Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Thu, 22 Dec 2022 22:43:48 +0100 Subject: [PATCH] main/postmarketos-ui-plasma-desktop: move some deps to extra (MR 3756) Move some dependencies from plasma-desktop to the -extras subpackage, so they don't get installed by default: * audiocd-kio (2 MiB): using a CD drive with postmarketOS seems to be a very rare combination * kolourpaint (3 MiB): very basic image editor with featureset of MS paint, I don't think it's that useful in a default install. Users looking for an image editor may want to use e.g. krita instead and can install whatever they want to use after the default install is done. * kwrite (20 MiB): another text editor, kate (3 MiB), is already getting installed by default * okular (81 MiB): quite big, and pdfs can also be viewed in firefox which we install by default * mesa-demos (50 MiB): rather big for just being some graphical demos It's always a good idea to keep the install image small, but in this instance the change was prompted because we currently hit a size limit when generating install images. In particular, when generating the v22.12 image for the pinebookpro. The process for generating install images is not optimized for size (see bpo issue 116) and this should be improved, but in the meantime let's just reduce the install size with this patch on edge and backport it to v22.12 so building this image doesn't fail anymore. Sizes listed above are for aarch64 and include dependencies that get removed together with removing the package. --- main/postmarketos-ui-plasma-desktop/APKBUILD | 21 ++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/main/postmarketos-ui-plasma-desktop/APKBUILD b/main/postmarketos-ui-plasma-desktop/APKBUILD index 1304efb3c..422bbb767 100644 --- a/main/postmarketos-ui-plasma-desktop/APKBUILD +++ b/main/postmarketos-ui-plasma-desktop/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Bart Ribbers pkgname=postmarketos-ui-plasma-desktop pkgver=2 -pkgrel=12 +pkgrel=13 pkgdesc="(X11/Wayland) KDE Desktop Environment (works well with tablets)" url="https://www.kde.org" # armhf and riscv64 blocked by plasma @@ -16,7 +16,6 @@ depends=" " _pmb_recommends=" ark - audiocd-kio dolphin ffmpegthumbs firefox @@ -26,9 +25,7 @@ _pmb_recommends=" kdialog kfind kio-extras - kolourpaint konsole - kwrite maliit-keyboard networkmanager networkmanager-cli @@ -36,7 +33,6 @@ _pmb_recommends=" networkmanager-tui networkmanager-wifi networkmanager-wwan - okular postmarketos-artwork-wallpapers print-manager qt5-qtvirtualkeyboard @@ -46,7 +42,6 @@ _pmb_recommends=" # For the KInfocenter pages in system settings _pmb_recommends="$_pmb_recommends aha - mesa-demos pciutils vulkan-tools wayland-utils @@ -58,3 +53,17 @@ options="!check" # No tests for a metapkg package() { mkdir -p "$pkgdir" } + +extras() { + pkgdesc="Meta package for additional Plasma apps and functionality" + # For Kinfocenter: mesa-demos + _pmb_recommends=" + audiocd-kio + kolourpaint + kwrite + mesa-demos + okular + " + + mkdir -p "$subpkgdir" +}