Package Details: phonon-qt6-git 4.12.0_r3982.g0bb5869c-1

Git Clone URL: https://aur.archlinux.org/phonon-qt6-git.git (read-only, click to copy)
Package Base: phonon-qt6-git
Description: The multimedia framework by KDE
Upstream URL: https://community.kde.org/Phonon
Licenses: LGPL
Conflicts: phonon-qt6
Provides: phonon-qt6
Replaces: phonon-git
Submitter: IslandC0der
Maintainer: IslandC0der
Last Packager: IslandC0der
Votes: 0
Popularity: 0.000000
First Submitted: 2023-06-08 22:16 (UTC)
Last Updated: 2024-07-31 01:27 (UTC)

Required by (20)

Sources (1)

Latest Comments

nulogicsystems commented on 2023-10-11 17:37 (UTC) (edited on 2023-10-16 18:15 (UTC) by nulogicsystems)

un-splitting the packging is fine, but it won't build in a clean chroot without the qt5 dependencies.

- The following RECOMMENDED packages have not been found:

 * Qt5Designer (required version >= 5.15.0), Needed to build the Qt Designer plugin, <https://www.qt.io/download>

-- The following REQUIRED packages have not been found:

 * Qt5Core (required version >= 5.15.0), Qt5 core module, <https://www.qt.io/download>
 * Qt5Gui (required version >= 5.15.0), Qt5 GUI module, <https://www.qt.io/download>
 * Qt5Widgets (required version >= 5.15.0), Qt5 widgets module, <https://www.qt.io/download>

CMake Error at /usr/share/cmake/Modules/FeatureSummary.cmake:464 (message):
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
  run.
Call Stack (most recent call first):
  CMakeLists.txt:236 (feature_summary)


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...

Why not disable the QT5 build altogether since it's already provided?

Rustmilian commented on 2023-03-13 04:42 (UTC) (edited on 2023-03-13 04:43 (UTC) by Rustmilian)

@IslandC0der if you wish to take the liberty in splitting it go right ahead.

I un-split it for the sake of sanity.

It's your package so make any alterations you want and just use my diff to know what deps you need.

IslandC0der commented on 2023-03-13 03:08 (UTC)

@Rustmilian looks good, but why have you unsplit the package? The tradition so far has been to have it as a split package so as to provide both Qt versions during a transient stage https://github.com/archlinux/svntogit-packages/blob/master/phonon/trunk/PKGBUILD

I agree it might make sense to separate it into 2 distinct PKGBUILDs for the AUR, but then the new pkgname would be phonon-qt6-git

Rustmilian commented on 2023-03-13 02:50 (UTC) (edited on 2023-03-13 03:00 (UTC) by Rustmilian)

PKGBUILD diff

diff --git a/PKGBUILD b/PKGBUILD
index 5c9c73f..817e6ac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,34 @@
 # Merged with official ABS phonon PKGBUILD by João, 2021/05/01 (all respective contributors apply herein)
 # Maintainer: João Figueiredo & chaotic-aur <islandc0der@chaotic.cx>

-pkgbase=phonon-git
-pkgname=(phonon-qt5-git)
+pkgname=phonon-git
 pkgdesc="The multimedia framework by KDE"
-pkgver=4.11.1_r3850.g6a5106d3
+pkgver=4.11.1_r3900.g81b3111d
 pkgrel=1
 arch=($CARCH)
 url='https://community.kde.org/Phonon'
 license=(LGPL)
-depends=(libpulse qt5-base)
-optdepends=('pulseaudio: PulseAudio support' 'qt5-tools: Designer plugin')
-makedepends=(git extra-cmake-modules-git qt5-tools)
+depends=(libpulse qt6-base)
+optdepends=('pulseaudio: PulseAudio support' 'qt6-tools: Designer plugin')
+makedepends=(git extra-cmake-modules-git qt6-tools qt6-5compat)
 conflicts=(${pkgname%-git})
 provides=(${pkgname%-git})
-source=("git+https://github.com/KDE/${pkgbase%-git}.git")
+source=("git+https://github.com/KDE/${pkgname%-git}.git")
 sha256sums=('SKIP')

 pkgver() {
-  cd ${pkgbase%-git}
+  cd ${pkgname%-git}
   _ver="$(grep -m1 'project(Phonon VERSION' CMakeLists.txt | cut -d '"' -f2 | tr - .)"
   echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
 }

 build() {
-  cmake -B build -S ${pkgbase%-git} \
+  cmake -B build -S ${pkgname%-git} \
+    -DQT_MAJOR_VERSION=6 \
     -DBUILD_TESTING=OFF
   cmake --build build
 }

-package_phonon-qt5-git(){
-  depends+=(phonon-qt5-backend)
-
+package(){
   DESTDIR="$pkgdir" cmake --install build
 }

.gitignore

*
!/.gitignore
!/PKGBUILD
!/.SRCINFO

make sure to regenerate .SRCINFO

davispuh commented on 2023-02-06 04:08 (UTC)

To build it for Qt6 pass -DQT_MAJOR_VERSION=6