Package Details: qadwaitadecorations-qt6-git 0.1.3.r0.g795bd8d-1

Git Clone URL: https://aur.archlinux.org/qadwaitadecorations-git.git (read-only, click to copy)
Package Base: qadwaitadecorations-git
Description: Qt6 decoration plugin implementing Adwaita-like client-side decorations
Upstream URL: https://github.com/FedoraQt/QAdwaitaDecorations
Licenses: LGPL-2.1-or-later
Conflicts: qadwaitadecorations-qt6, qgnomeplatform-qt6
Provides: qadwaitadecorations-qt6
Submitter: taoky
Maintainer: taoky
Last Packager: taoky
Votes: 2
Popularity: 0.000280
First Submitted: 2023-08-27 06:23 (UTC)
Last Updated: 2024-08-12 17:39 (UTC)

Dependencies (8)

Required by (1)

Sources (1)

Latest Comments

« First ‹ Previous 1 2

yochananmarqos commented on 2023-10-24 22:02 (UTC)

@taoky: Because it only conflicts with versions older than 0.9.2. See the release notes.

taoky commented on 2023-10-24 21:57 (UTC)

@yochananmarqos I'll fix this. However, I'm confused about "qgnomeplatform-qt5<0.9.2": why not include 0.9.2 (the last released version of qgnomeplatform) here?

yochananmarqos commented on 2023-10-24 21:13 (UTC)

Please add qadwaitadecorations-qt5-git, it can be built without the Fedora patches by default now.

Either way, this package has been missing the qt6-svg dependency since 0.1.1. Apparently you're not following upstream at all.

diff --git a/PKGBUILD b/PKGBUILD
index 22ccf7b..84a5356 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,34 +9,49 @@

 pkgbase=qadwaitadecorations-git
 _pkgname=QAdwaitaDecorations
-pkgname=(qadwaitadecorations-qt6-git)
-pkgver=0.1.0.r0.g8ef4b78
+pkgname=('qadwaitadecorations-qt5-git' 'qadwaitadecorations-qt6-git')
+pkgver=0.1.3.r0.g795bd8d
 pkgrel=1
 pkgdesc='Qt decoration plugin implementing Adwaita-like client-side decorations'
 arch=(x86_64)
 url='https://github.com/FedoraQt/QAdwaitaDecorations'
 license=(LGPL2.1)
-makedepends=(cmake git qt6-wayland)
-source=(git+https://github.com/FedoraQt/$_pkgname.git)
+depends=(qt5-svg qt5-wayland qt6-svg qt6-wayland)
+makedepends=(cmake git)
+source=("git+https://github.com/FedoraQt/$_pkgname.git")
 sha256sums=('SKIP')

 pkgver() {
-  cd $_pkgname
+  cd "$_pkgname"
   git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
 }

 build() {
-  cmake -B build-qt6 -S $_pkgname \
+  cmake -B build-qt5 -S "$_pkgname" \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DUSE_QT6=OFF
+  cmake --build build-qt5
+
+  cmake -B build-qt6 -S "$_pkgname" \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DUSE_QT6=ON
   cmake --build build-qt6
 }

+package_qadwaitadecorations-qt5-git() {
+  pkgdesc='Qt5 decoration plugin implementing Adwaita-like client-side decorations'
+  depends=(qt5-svg qt5-wayland)
+  provides=(qadwaitadecorations-qt5)
+  conflicts=(qadwaitadecorations-qt5 'qgnomeplatform-qt5<0.9.2')
+
+  DESTDIR="$pkgdir" cmake --install build-qt5
+}
+
 package_qadwaitadecorations-qt6-git() {
-  pkgdesc='Qt decoration plugin implementing Adwaita-like client-side decorations'
-  depends=(qt6-wayland)
+  pkgdesc='Qt6 decoration plugin implementing Adwaita-like client-side decorations'
+  depends=(qt6-svg qt6-wayland)
   provides=(qadwaitadecorations-qt6)
-  conflicts=(qadwaitadecorations-qt6)
+  conflicts=(qadwaitadecorations-qt6 'qgnomeplatform-qt6<0.9.2')

   DESTDIR="$pkgdir" cmake --install build-qt6
 }