[arch-commits] Commit in qca/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Tue Jun 1 20:03:34 UTC 2021
Date: Tuesday, June 1, 2021 @ 20:03:34
Author: arojas
Revision: 416942
Update to 2.3.3, add Qt6 support
Modified:
qca/trunk/PKGBUILD
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++--------------
1 file changed, 30 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-01 19:53:38 UTC (rev 416941)
+++ PKGBUILD 2021-06-01 20:03:34 UTC (rev 416942)
@@ -2,33 +2,49 @@
# Contributor: Andrea Scarpino <andrea at archlinux.org>
# Contributor: Pierre Schmitz <pierre at archlinux.de>
-pkgname=qca
-pkgver=2.3.2
-pkgrel=2
+pkgbase=qca
+pkgname=(qca-qt5 qca-qt6)
+pkgver=2.3.3
+pkgrel=1
pkgdesc='Qt Cryptographic Architecture'
arch=(x86_64)
url='https://userbase.kde.org/QCA'
license=(LGPL)
-depends=(qt5-base nss ca-certificates)
optdepends=('pkcs11-helper: PKCS-11 plugin' 'botan: botan plugin')
-makedepends=(cmake doxygen pkcs11-helper botan)
-conflicts=(qca-qt5)
-provides=(qca-qt5)
-replaces=(qca-qt5)
-source=(https://download.kde.org/stable/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz{,.sig})
-sha256sums=('4697600237c4bc3a979e87d2cc80624f27b06280e635f5d90ec7dd4d2a9f606d'
+makedepends=(cmake doxygen pkcs11-helper botan qt5-base qt6-5compat)
+source=(https://download.kde.org/stable/$pkgbase/$pkgver/$pkgbase-$pkgver.tar.xz{,.sig})
+sha256sums=('562e8f9b8542944e2c0c18c45c05bb202f620db84032790c54b424454f727b67'
'SKIP')
validpgpkeys=(CB9387521E1EE0127DA804843FDBB55084CC5D84) # Harald Sitter <sitter at kde.org>
build() {
- cmake -B build -S $pkgname-$pkgver \
+ cmake -B build-qt5 -S $pkgbase-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTS=OFF \
-DQCA_INSTALL_IN_QT_PREFIX=ON \
-DQCA_MAN_INSTALL_DIR=/usr/share/man
- cmake --build build
+ cmake --build build-qt5
+
+ cmake -B build-qt6 -S $pkgbase-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DQT6=ON \
+ -DBUILD_TESTS=OFF \
+ -DQCA_INSTALL_IN_QT_PREFIX=ON \
+ -DQCA_MAN_INSTALL_DIR=/usr/share/man
+ cmake --build build-qt6
}
-package() {
- DESTDIR="$pkgdir" cmake --install build
+package_qca-qt5() {
+ depends=(qt5-base nss ca-certificates)
+ conflicts=(qca)
+ provides=(qca)
+ replaces=(qca)
+
+ DESTDIR="$pkgdir" cmake --install build-qt5
}
+
+package_qca-qt6() {
+ depends=(qt6-5compat nss ca-certificates)
+
+ DESTDIR="$pkgdir" cmake --install build-qt6
+}
More information about the arch-commits
mailing list