1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Pierre Schmitz <pierre@archlinux.de>
6 pkgname=(qca-qt5 qca-qt6)
9 pkgdesc='Qt Cryptographic Architecture'
11 url='https://userbase.kde.org/QCA'
13 optdepends=('pkcs11-helper: PKCS-11 plugin' 'botan: botan plugin')
14 makedepends=(cmake doxygen pkcs11-helper botan qt5-base qt6-5compat)
15 source=(https://download.kde.org/stable/$pkgbase/$pkgver/$pkgbase-$pkgver.tar.xz{,.sig})
16 sha256sums=('6b695881a7e3fd95f73aaee6eaeab96f6ad17e515e9c2b3d4b3272d7862ff5c4'
18 validpgpkeys=(CB9387521E1EE0127DA804843FDBB55084CC5D84) # Harald Sitter <sitter@kde.org>
22 cmake -B build-qt5 -S $pkgbase-$pkgver \
23 -DCMAKE_INSTALL_PREFIX=/usr \
25 -DQCA_INSTALL_IN_QT_PREFIX=ON \
26 -DQCA_MAN_INSTALL_DIR=/usr/share/man
27 cmake --build build-qt5
29 cmake -B build-qt6 -S $pkgbase-$pkgver \
30 -DCMAKE_INSTALL_PREFIX=/usr \
33 -DQCA_INSTALL_IN_QT_PREFIX=ON \
34 -DQCA_MAN_INSTALL_DIR=/usr/share/man
35 cmake --build build-qt6
39 depends=(qt5-base nss ca-certificates)
44 DESTDIR="$pkgdir" cmake --install build-qt5
48 depends=(qt6-5compat nss ca-certificates)
50 DESTDIR="$pkgdir" cmake --install build-qt6