OCaml 4.14.0 rebuild
[arch-packages.git] / qca / trunk / PKGBUILD
blobe8d1a950298c6a76dfa2273b7f88559907124297
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.4
8 pkgrel=3
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=('6b695881a7e3fd95f73aaee6eaeab96f6ad17e515e9c2b3d4b3272d7862ff5c4'
17             'SKIP')
18 validpgpkeys=(CB9387521E1EE0127DA804843FDBB55084CC5D84) # Harald Sitter <sitter@kde.org>
19 options=(debug)
21 build() {
22   cmake -B build-qt5 -S $pkgbase-$pkgver \
23     -DCMAKE_INSTALL_PREFIX=/usr \
24     -DBUILD_TESTS=OFF \
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 \
31     -DQT6=ON \
32     -DBUILD_TESTS=OFF \
33     -DQCA_INSTALL_IN_QT_PREFIX=ON \
34     -DQCA_MAN_INSTALL_DIR=/usr/share/man
35   cmake --build build-qt6
38 package_qca-qt5() {
39   depends=(qt5-base nss ca-certificates)
40   conflicts=(qca)
41   provides=(qca)
42   replaces=(qca)
44   DESTDIR="$pkgdir" cmake --install build-qt5
47 package_qca-qt6() {
48   depends=(qt6-5compat nss ca-certificates)
50   DESTDIR="$pkgdir" cmake --install build-qt6