[arch-commits] Commit in qtkeychain/repos/community-x86_64 (PKGBUILD PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Dec 16 20:47:28 UTC 2020


    Date: Wednesday, December 16, 2020 @ 20:47:27
  Author: arojas
Revision: 776988

archrelease: copy trunk to community-x86_64

Added:
  qtkeychain/repos/community-x86_64/PKGBUILD
    (from rev 776987, qtkeychain/trunk/PKGBUILD)
Deleted:
  qtkeychain/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   76 +++++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 47 insertions(+), 29 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-16 20:47:16 UTC (rev 776987)
+++ PKGBUILD	2020-12-16 20:47:27 UTC (rev 776988)
@@ -1,29 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Contributor: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
-# Contributor: Teo Mrnjavac <teo at kde.org>
-
-pkgname=qtkeychain
-pkgver=0.12.0
-pkgrel=1
-pkgdesc='Provides support for secure credentials storage'
-arch=(x86_64)
-url='https://github.com/frankosterfeld/qtkeychain'
-license=(BSD)
-depends=(libsecret qt5-base)
-makedepends=(cmake qt5-tools)
-optdepends=('kwallet: kwallet backend')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/frankosterfeld/qtkeychain/archive/v$pkgver.tar.gz")
-sha256sums=('cc547d58c1402f6724d3ff89e4ca83389d9e2bdcfd9ae3d695fcdffa50a625a8')
-
-build() {
-  cmake -B build -S $pkgname-$pkgver \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_INSTALL_LIBDIR=lib \
-    -DCMAKE_INSTALL_LIBEXECDIR=lib/${pkgname}
-  cmake --build build
-}
-
-package() {
-  DESTDIR="$pkgdir" cmake --install build
-  install -Dm644 $pkgname-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: qtkeychain/repos/community-x86_64/PKGBUILD (from rev 776987, qtkeychain/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-16 20:47:27 UTC (rev 776988)
@@ -0,0 +1,47 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
+# Contributor: Teo Mrnjavac <teo at kde.org>
+
+pkgbase=qtkeychain
+pkgname=(qtkeychain-qt5 qtkeychain-qt6)
+pkgver=0.12.0
+pkgrel=1
+pkgdesc='Provides support for secure credentials storage'
+arch=(x86_64)
+url='https://github.com/frankosterfeld/qtkeychain'
+license=(BSD)
+depends=(libsecret)
+makedepends=(cmake qt5-tools qt6-tools)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/frankosterfeld/qtkeychain/archive/v$pkgver.tar.gz")
+sha256sums=('cc547d58c1402f6724d3ff89e4ca83389d9e2bdcfd9ae3d695fcdffa50a625a8')
+
+build() {
+  cmake -B build-qt5 -S $pkgbase-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib
+  cmake --build build-qt5
+
+  cmake -B build-qt6 -S $pkgbase-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DBUILD_WITH_QT6=ON
+  cmake --build build-qt6
+}
+
+package_qtkeychain-qt5() {
+  depends+=(qt5-base)
+  optdepends=('kwallet: kwallet backend')
+  conflicts=(qtkeychain)
+  provides=(qtkeychain)
+  replaces=(qtkeychain)
+
+  DESTDIR="$pkgdir" cmake --install build-qt5
+  install -Dm644 $pkgbase-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_qtkeychain-qt6() {
+  depends+=(qt6-base)
+
+  DESTDIR="$pkgdir" cmake --install build-qt6
+  install -Dm644 $pkgbase-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list