git » accounts-qml-module.git » commit 2d1c806

Build with Qt6 in kde-unstable

author Antonio Rojas
2023-12-22 22:37:55 UTC
committer Antonio Rojas
2023-12-22 22:37:55 UTC
parent 74a32735784a55f3d30aa7fb2f5055573e0f6cdd

Build with Qt6 in kde-unstable

PKGBUILD +15 -10

diff --git a/PKGBUILD b/PKGBUILD
index 3d58a29..8edf529 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,27 +2,32 @@
 
 pkgname=accounts-qml-module
 pkgver=0.7
-pkgrel=4
+pkgrel=5
 pkgdesc='Expose the Online Accounts API to QML applications'
 url='https://gitlab.com/accounts-sso/accounts-qml-module'
 arch=(x86_64)
 license=(LGPL)
-depends=(signond libaccounts-qt qt5-declarative)
-makedepends=(qt5-tools)
-source=(https://gitlab.com/accounts-sso/$pkgname/-/archive/VERSION_$pkgver/$pkgname-VERSION_$pkgver.tar.gz
-        accounts-qml-module-qmltypes.patch::https://gitlab.com/accounts-sso/accounts-qml-module/-/commit/678c493a.patch)
-sha256sums=('550a6c684bf4b4f6460a35bac0cf3afbb9090a5cf4038b880c6b86c2e9ea0195'
-            'ae1142ba51f261a9e5c128fcb6c7518c642fc17ce0d908e31e8af14440db9faa')
+depends=(gcc-libs
+         glibc
+         libaccounts-qt
+         qt6-base
+         qt6-declarative
+         signond)
+makedepends=(git
+             qt6-tools)
+# source=(https://gitlab.com/accounts-sso/$pkgname/-/archive/VERSION_$pkgver/$pkgname-VERSION_$pkgver.tar.gz)
+_commit=05e79ebbbf3784a87f72b7be571070125c10dfe3
+source=(git+https://gitlab.com/accounts-sso/accounts-qml-module#commit=$_commit)
+sha256sums=('SKIP')
 
 prepare() {
   mkdir -p build
-  sed -e 's/-Werror//' -i $pkgname-VERSION_$pkgver/common-project-config.pri
-  patch -d $pkgname-VERSION_$pkgver -p1 -i ../accounts-qml-module-qmltypes.patch
 }
 
 build() {
   cd build 
-  qmake-qt5 ../$pkgname-VERSION_$pkgver/$pkgname.pro PREFIX=/usr
+  qmake6 ../$pkgname/$pkgname.pro \
+    PREFIX=/usr
   make
 }