summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/libkscreen/APKBUILD18
1 files changed, 16 insertions, 2 deletions
diff --git a/user/libkscreen/APKBUILD b/user/libkscreen/APKBUILD
index f5d322a6f..c241f9e62 100644
--- a/user/libkscreen/APKBUILD
+++ b/user/libkscreen/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libkscreen
pkgver=5.12.7
-pkgrel=0
+pkgrel=1
pkgdesc="KDE Plasma screen management software"
url="https://www.kde.org/"
arch="all"
@@ -12,7 +12,7 @@ depends=""
depends_dev="qt5-qtbase-dev"
makedepends="$depends_dev cmake extra-cmake-modules qt5-qtx11extras-dev
kwayland-dev"
-subpackages="$pkgname-dev"
+subpackages="kscreen-doctor:doctor $pkgname-dev $pkgname-wayland"
source="https://download.kde.org/stable/plasma/$pkgver/libkscreen-$pkgver.tar.xz"
build() {
@@ -41,4 +41,18 @@ package() {
make DESTDIR="$pkgdir" install
}
+doctor() {
+ pkgdesc="KDE Plasma screen debugging and management tool"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+wayland() {
+ pkgdesc="$pkgdesc (Wayland support)"
+ install_if="$pkgname=$pkgver-r$pkgrel wayland"
+ mkdir -p "$subpkgdir"/usr/lib/qt5/plugins/kf5/kscreen
+ mv "$pkgdir"/usr/lib/qt5/plugins/kf5/kscreen/KSC_KWayland.so \
+ "$subpkgdir"/usr/lib/qt5/plugins/kf5/kscreen/
+}
+
sha512sums="fb24d0f4f79468d4246e912f4b7e814df398911cdbd475e18263e89502ecca35c9e4974b7f0af92afa8cba3081056f8f27b0f051eb287c682dd37b35568b3c5c libkscreen-5.12.7.tar.xz"