archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qtkeychain / trunk / PKGBUILD
blob98d706ff9d413a840b2aa62bdcb794f70a4f54f0
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
3 # Contributor: Teo Mrnjavac <teo@kde.org>
5 pkgbase=qtkeychain
6 pkgname=(qtkeychain-qt5 qtkeychain-qt6)
7 pkgver=0.14.0
8 pkgrel=1
9 pkgdesc='Provides support for secure credentials storage'
10 arch=(x86_64)
11 url='https://github.com/frankosterfeld/qtkeychain'
12 license=(BSD)
13 depends=(libsecret)
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')
18 build() {
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 \
25     -DBUILD_WITH_QT6=ON
26   cmake --build build-qt6
29 package_qtkeychain-qt5() {
30   depends+=(qt5-base)
31   optdepends=('kwallet: kwallet backend')
32   conflicts=(qtkeychain)
33   provides=(qtkeychain)
34   replaces=(qtkeychain)
36   DESTDIR="$pkgdir" cmake --install build-qt5
37   install -Dm644 $pkgbase-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
40 package_qtkeychain-qt6() {
41   depends+=(qt6-base)
43   DESTDIR="$pkgdir" cmake --install build-qt6
44   install -Dm644 $pkgbase-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE