Date: Saturday, April 8, 2023 @ 23:24:32
Author: arojas
Revision: 1443027
archrelease: copy trunk to community-testing-x86_64
Added:
qgnomeplatform/repos/community-testing-x86_64/
qgnomeplatform/repos/community-testing-x86_64/PKGBUILD
(from rev 1443026, qgnomeplatform/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: qgnomeplatform/repos/community-testing-x86_64/PKGBUILD (from rev
1443026, qgnomeplatform/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2023-04-08 23:24:32 UTC (rev 1443027)
@@ -0,0 +1,52 @@
+# Maintainer: Antonio Rojas <[email protected]>
+# Contributor: j.r <[email protected]>
+# Contributor: Jonathan Chasteen <jonathan dot chasteen at live dot com>
+# Contributor: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
+# Contributor: aimileus <me at aimileus dot nl>
+# Contributor: spider-mario <[email protected]>
+
+pkgbase=qgnomeplatform
+_pkgname=QGnomePlatform
+pkgname=(qgnomeplatform-qt5 qgnomeplatform-qt6)
+pkgver=0.9.0
+pkgrel=9
+pkgdesc='QPlatformTheme for a better Qt application inclusion in GNOME'
+arch=(x86_64)
+url='https://github.com/FedoraQt/QGnomePlatform'
+license=(LGPL2.1)
+makedepends=(cmake gtk3 qt5-wayland qt6-wayland adwaita-qt5 adwaita-qt6)
+source=(https://github.com/FedoraQt/QGnomePlatform/archive/$pkgver/$_pkgname-$pkgver.tar.gz
+ https://github.com/FedoraQt/QGnomePlatform/commit/c8000cb1.patch)
+sha256sums=('27c0e238a40b56814418a55ee553438e30e2ca5cce02cfb116703452c21dab17'
+ '4ffd956df11213fcb31fdd77957e9a024adc35a96efb9631ccc7530f05c0eabf')
+
+prepare() {
+ patch -d $_pkgname-$pkgver -p1 < c8000cb1.patch # Fix build with Qt 6.5
+}
+
+build() {
+ cmake -B build-qt5 -S $_pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DUSE_QT6=OFF
+ cmake --build build-qt5
+
+ cmake -B build-qt6 -S $_pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DUSE_QT6=ON
+ cmake --build build-qt6
+}
+
+package_qgnomeplatform-qt5() {
+ pkgdesc='QPlatformTheme for a better Qt5 application inclusion in GNOME'
+ depends=(gtk3 qt5-wayland adwaita-qt5)
+ replaces=(qgnomeplatform)
+
+ DESTDIR="$pkgdir" cmake --install build-qt5
+}
+
+package_qgnomeplatform-qt6() {
+ pkgdesc='QPlatformTheme for a better Qt6 application inclusion in GNOME'
+ depends=(gtk3 qt6-wayland adwaita-qt6)
+
+ DESTDIR="$pkgdir" cmake --install build-qt6
+}