1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
3 # Contributor: Teo Mrnjavac <teo@kde.org>
6 pkgname=(qtkeychain-qt5 qtkeychain-qt6)
9 pkgdesc='Provides support for secure credentials storage'
11 url='https://github.com/frankosterfeld/qtkeychain'
14 makedepends=(cmake qt5-tools qt6-tools qt6-declarative clang)
15 source=(https://github.com/frankosterfeld/qtkeychain/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
16 sha256sums=('ad78f2d9e0a5ee80f40cbaace4f55d11c2557bc6e930cf4a9479e39a7d78bb60')
19 cmake -B build-qt5 -S $pkgbase-$pkgver \
20 -DCMAKE_INSTALL_PREFIX=/usr
21 cmake --build build-qt5
23 cmake -B build-qt6 -S $pkgbase-$pkgver \
24 -DCMAKE_INSTALL_PREFIX=/usr \
26 cmake --build build-qt6
29 package_qtkeychain-qt5() {
31 optdepends=('kwallet: kwallet backend')
32 conflicts=(qtkeychain)
36 DESTDIR="$pkgdir" cmake --install build-qt5
37 install -Dm644 $pkgbase-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
40 package_qtkeychain-qt6() {
43 DESTDIR="$pkgdir" cmake --install build-qt6
44 install -Dm644 $pkgbase-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE