git » libaccounts-qt.git » commit 12b9382

Build with Qt6 in kde-unstable

author Antonio Rojas
2023-12-22 07:34:38 UTC
committer Antonio Rojas
2023-12-22 07:34:38 UTC
parent 79fefe647cdd70e38521d1f97d2b32b0db75a90b

Build with Qt6 in kde-unstable

PKGBUILD +16 -12

diff --git a/PKGBUILD b/PKGBUILD
index 817d706..f0f7857 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,31 +5,35 @@
 pkgname=libaccounts-qt
 pkgdesc='Qt-based client library for accessing the online accounts database'
 pkgver=1.16
-pkgrel=3
+pkgrel=4
 arch=(x86_64)
 url='https://gitlab.com/accounts-sso/libaccounts-qt'
 license=(LGPL)
-depends=(libaccounts-glib qt5-base)
-makedepends=(doxygen)
-conflicts=(libaccounts-qt5)
-provides=(libaccounts-qt5)
-replaces=(libaccounts-qt5)
-source=(https://gitlab.com/accounts-sso/libaccounts-qt/-/archive/VERSION_$pkgver/libaccounts-qt-VERSION_$pkgver.tar.gz)
-sha256sums=('3e527b151ee87e851b0f027214bda1353d8e48e10a5b54109f1e4b7d422a7de3')
+depends=(gcc-libs
+         glib2
+         glibc
+         libaccounts-glib
+         qt6-base)
+makedepends=(doxygen
+             git)
+# source=(https://gitlab.com/accounts-sso/libaccounts-qt/-/archive/VERSION_$pkgver/libaccounts-qt-VERSION_$pkgver.tar.gz)
+_commit=18557f7def9af8f4a9e0e93e9f575ae11e5066aa
+source=(git+https://gitlab.com/nicolasfella/libaccounts-qt#commit=$_commit)
+sha256sums=('SKIP')
 
 prepare() {
-  cd $pkgname-VERSION_$pkgver
+  cd $pkgname
   sed -i 's|SUBDIRS  += Accounts tests|SUBDIRS += Accounts|' accounts-qt.pro
 }
 
 build() {
-  cd $pkgname-VERSION_$pkgver
-  qmake PREFIX=/usr LIBDIR=/usr/lib
+  cd $pkgname
+  qmake6 PREFIX=/usr LIBDIR=/usr/lib
   make
 }
 
 package() {
-  cd $pkgname-VERSION_$pkgver
+  cd $pkgname
   make INSTALL_ROOT="$pkgdir" install
 
 # Remove docs