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=('ee59d531d4b82fb1685f4d8d74c2caa0777f501800f7426eaa372109a4305249'
18 validpgpkeys=(CB9387521E1EE0127DA804843FDBB55084CC5D84) # Harald Sitter <sitter@kde.org>
21 cmake -B build-qt5 -S $pkgbase-$pkgver \
22 -DCMAKE_INSTALL_PREFIX=/usr \
24 -DQCA_INSTALL_IN_QT_PREFIX=ON \
25 -DQCA_MAN_INSTALL_DIR=/usr/share/man
26 cmake --build build-qt5
28 cmake -B build-qt6 -S $pkgbase-$pkgver \
29 -DCMAKE_INSTALL_PREFIX=/usr \
32 -DQCA_INSTALL_IN_QT_PREFIX=ON \
33 -DQCA_MAN_INSTALL_DIR=/usr/share/man
34 cmake --build build-qt6
38 depends=(qt5-base nss ca-certificates)
43 DESTDIR="$pkgdir" cmake --install build-qt5
47 depends=(qt6-5compat nss ca-certificates)
49 DESTDIR="$pkgdir" cmake --install build-qt6