archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qca / repos / extra-x86_64 / PKGBUILD
bloba4b83a8987a00427446e5540bb21317444914c65
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Pierre Schmitz <pierre@archlinux.de>
5 pkgbase=qca
6 pkgname=(qca-qt5 qca-qt6)
7 pkgver=2.3.6
8 pkgrel=2
9 pkgdesc='Qt Cryptographic Architecture'
10 arch=(x86_64)
11 url='https://userbase.kde.org/QCA'
12 license=(LGPL)
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'
17             'SKIP')
18 validpgpkeys=(CB9387521E1EE0127DA804843FDBB55084CC5D84) # Harald Sitter <sitter@kde.org>
20 build() {
21   cmake -B build-qt5 -S $pkgbase-$pkgver \
22     -DCMAKE_INSTALL_PREFIX=/usr \
23     -DBUILD_TESTS=OFF \
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 \
30     -DQT6=ON \
31     -DBUILD_TESTS=OFF \
32     -DQCA_INSTALL_IN_QT_PREFIX=ON \
33     -DQCA_MAN_INSTALL_DIR=/usr/share/man
34   cmake --build build-qt6
37 package_qca-qt5() {
38   depends=(qt5-base nss ca-certificates)
39   conflicts=(qca)
40   provides=(qca)
41   replaces=(qca)
43   DESTDIR="$pkgdir" cmake --install build-qt5
46 package_qca-qt6() {
47   depends=(qt6-5compat nss ca-certificates)
49   DESTDIR="$pkgdir" cmake --install build-qt6