git » signon-plugin-oauth2.git » commit da23e12

Build with Qt6 in kde-unstable

author Antonio Rojas
2023-12-22 22:47:03 UTC
committer Antonio Rojas
2023-12-22 22:47:03 UTC
parent 6cc96ea0f6f85654fd715dcc97c480b696c7db11

Build with Qt6 in kde-unstable

PKGBUILD +16 -11

diff --git a/PKGBUILD b/PKGBUILD
index 9476765..ddb8812 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,20 +4,23 @@
 pkgname=signon-plugin-oauth2
 _pkgname=signon-oauth2
 pkgver=0.25
-pkgrel=1
+pkgrel=2
 pkgdesc='OAuth 2 plugin for signon'
 arch=(x86_64)
 url='https://gitlab.com/accounts-sso/signon-plugin-oauth2'
 license=(LGPL)
-depends=(signond)
-makedepends=(qt5-xmlpatterns)
-source=(https://gitlab.com/accounts-sso/signon-plugin-oauth2/-/archive/VERSION_$pkgver/signon-plugin-oauth2-VERSION_$pkgver.tar.bz2)
-sha256sums=('04ce8d84f2beb29ca86399794519c2d0bbecf7c428fd9e6c01d7f3614a9ba98e')
+depends=(gcc-libs
+         glibc
+         qt6-base
+         signond)
+makedepends=(git)
+# source=(https://gitlab.com/accounts-sso/signon-plugin-oauth2/-/archive/VERSION_$pkgver/signon-plugin-oauth2-VERSION_$pkgver.tar.bz2)
+_commit=fab698862466994a8fdc9aa335c87b4f05430ce6
+source=(git+https://gitlab.com/nicolasfella/signon-plugin-oauth2#commit=$_commit)
+sha256sums=('SKIP')
 
 prepare() {
-  cd $pkgname-VERSION_$pkgver
-
-  sed -i '/-Werror/d' common-project-config.pri
+  cd $pkgname
 
   # Do not install tests and example
   echo 'INSTALLS =' >>tests/tests.pro
@@ -25,14 +28,16 @@ prepare() {
 }
 
 build() {
-  cd $pkgname-VERSION_$pkgver
+  cd $pkgname
 
-  qmake-qt5 PREFIX=/usr LIBDIR=/usr/lib
+  qmake6 \
+    PREFIX=/usr \
+    LIBDIR=/usr/lib
   make
 }
 
 package() {
-  cd $pkgname-VERSION_$pkgver
+  cd $pkgname
 
   make INSTALL_ROOT="$pkgdir" install
 }