Chih-Hsuan Yen pushed to branch main at Arch Linux / Packaging / Packages / 
libkscreen5


Commits:
cba0dc7e by Chih-Hsuan Yen at 2024-02-24T01:18:40+08:00
Minor fixes/updates

* Update maintainership
* Add comments about why it depends on libkscreen from Plasma 6
* Depend the stable version of libkscreen
* Add conflicts/replaces for fluent system upgrades
* Fix a new namcap warning caused by the previous commit

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,4 +1,4 @@
-pkgbase = libkscreen
+pkgbase = libkscreen5
        pkgdesc = KDE screen management software
        pkgver = 5.27.10
        pkgrel = 1
@@ -14,6 +14,9 @@ pkgbase = libkscreen
        depends = qt5-x11extras
        depends = kwayland5
        depends = kconfig5
+       depends = libkscreen>=6.0
+       conflicts = libkscreen<6.0
+       replaces = libkscreen<6.0
        source = 
https://download.kde.org/stable/plasma/5.27.10/libkscreen-5.27.10.tar.xz
        source = 
https://download.kde.org/stable/plasma/5.27.10/libkscreen-5.27.10.tar.xz.sig
        validpgpkeys = E0A3EB202F8E57528E13E72FD7574483BB57B18D
@@ -23,4 +26,4 @@ pkgbase = libkscreen
        sha256sums = 
27f59f088929bc7fb560c353fb9da98832dde5b58fde88d9c694c98fdf3aff98
        sha256sums = SKIP
 
-pkgname = libkscreen
+pkgname = libkscreen5


=====================================
PKGBUILD
=====================================
@@ -1,5 +1,7 @@
-# Maintainer: Felix Yan <felixonm...@archlinux.org>
-# Maintainer: Antonio Rojas <aro...@archlinux.org>
+# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org>
+# Based on libkscreen package; original contributors:
+# Contributor: Felix Yan <felixonm...@archlinux.org>
+# Contributor: Antonio Rojas <aro...@archlinux.org>
 # Contributor: Andrea Scarpino <and...@archlinux.org>
 
 _name=libkscreen
@@ -11,8 +13,15 @@ pkgdesc='KDE screen management software'
 arch=(x86_64)
 url='https://kde.org/plasma-desktop/'
 license=(LGPL)
-depends=(qt5-x11extras kwayland5 kconfig5 'libkscreen>=5.90')
+# Both libkscreen in upstream Plasma 5 and 6 provides the dbus service 
org.kde.KScreen, and thus they conflict with each other.
+# To allow older libkscreen without affecting the newer one, I make older 
libkscreen use the dbus service from newer libkscreen.
+# As a result, depends include 'libkscreen>=6.0'
+# This follows the Fedora approach: 
https://src.fedoraproject.org/rpms/libkscreen-qt5/c/4438d64b134bd39956526a91c9320c4f1e332832?branch=rawhide
+# See also discussions around lxqt-config, a user of libkscreen: 
https://github.com/lxqt/lxqt/discussions/2139#discussioncomment-7699652
+depends=(qt5-x11extras kwayland5 kconfig5 'libkscreen>=6.0')
 makedepends=(extra-cmake-modules doxygen qt5-tools qt5-doc 
plasma-wayland-protocols)
+conflicts=("$_name<6.0")
+replaces=("$_name<6.0")
 groups=(plasma)
 
source=(https://download.kde.org/stable/plasma/$_dirver/$_name-$pkgver.tar.xz{,.sig})
 sha256sums=('27f59f088929bc7fb560c353fb9da98832dde5b58fde88d9c694c98fdf3aff98'
@@ -35,7 +44,7 @@ package() {
 
   # Remove the unneeded daemon and files that conflict with KF6 libkscreen
   rm -r "${pkgdir}"/usr/bin/
-  rm -r "${pkgdir}"/usr/lib/kf5/kscreen_backend_launcher
+  rm -r "${pkgdir}"/usr/lib/kf5/
   rm -r "${pkgdir}"/usr/lib/systemd/
   rm -r "${pkgdir}"/usr/share/dbus-1/
   rm -r "${pkgdir}"/usr/share/zsh/



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libkscreen5/-/commit/cba0dc7e06cb6181def7b49575198d1c3983de97

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/libkscreen5/-/commit/cba0dc7e06cb6181def7b49575198d1c3983de97
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to