git » libaccounts-qt.git » commit 79fefe6

Fix build (FS#71124)

author Antonio Rojas
2021-06-07 16:51:10 UTC
committer Antonio Rojas
2021-06-07 16:51:10 UTC
parent 243fe795317ca4fa91e9e99fe1256200005542f9

Fix build (FS#71124)

PKGBUILD +8 -11

diff --git a/PKGBUILD b/PKGBUILD
index 3fb846f..817d706 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,36 +3,33 @@
 # Contributor: Balló György <ballogyor+arch at gmail dot com>
 
 pkgname=libaccounts-qt
-pkgdesc="Qt-based client library for accessing the online accounts database"
+pkgdesc='Qt-based client library for accessing the online accounts database'
 pkgver=1.16
-pkgrel=2
+pkgrel=3
 arch=(x86_64)
-url="https://gitlab.com/accounts-sso/libaccounts-qt"
+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/repository/archive.tar.bz2?ref=VERSION_$pkgver")
-sha256sums=('8d51a70af51b30125441c26be88c46d57b5f0e09545448e5db4064ba38d68fad')
+source=(https://gitlab.com/accounts-sso/libaccounts-qt/-/archive/VERSION_$pkgver/libaccounts-qt-VERSION_$pkgver.tar.gz)
+sha256sums=('3e527b151ee87e851b0f027214bda1353d8e48e10a5b54109f1e4b7d422a7de3')
 
 prepare() {
-  mv $pkgname-VERSION_$pkgver-* $pkgname-$pkgver
-
-  cd $pkgname-$pkgver
+  cd $pkgname-VERSION_$pkgver
   sed -i 's|SUBDIRS  += Accounts tests|SUBDIRS += Accounts|' accounts-qt.pro
-  cd ..
 }
 
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname-VERSION_$pkgver
   qmake PREFIX=/usr LIBDIR=/usr/lib
   make
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname-VERSION_$pkgver
   make INSTALL_ROOT="$pkgdir" install
 
 # Remove docs