git » libaccounts-qt.git » commit 8cb3621

upgpkg: 1.16-4: Build with Qt6 in kde-unstable

author Antonio Rojas
2023-12-22 07:35:01 UTC
committer Antonio Rojas
2023-12-22 07:35:01 UTC
parent 79fefe647cdd70e38521d1f97d2b32b0db75a90b

upgpkg: 1.16-4: Build with Qt6 in kde-unstable

.SRCINFO +18 -0
PKGBUILD +16 -12

diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..77efe07
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = libaccounts-qt
+	pkgdesc = Qt-based client library for accessing the online accounts database
+	pkgver = 1.16
+	pkgrel = 4
+	url = https://gitlab.com/accounts-sso/libaccounts-qt
+	arch = x86_64
+	license = LGPL
+	makedepends = doxygen
+	makedepends = git
+	depends = gcc-libs
+	depends = glib2
+	depends = glibc
+	depends = libaccounts-glib
+	depends = qt6-base
+	source = git+https://gitlab.com/nicolasfella/libaccounts-qt#commit=18557f7def9af8f4a9e0e93e9f575ae11e5066aa
+	sha256sums = SKIP
+
+pkgname = libaccounts-qt
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