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

Bruno Pagani archange at gemini.archlinux.org
Sun Dec 26 20:09:20 UTC 2021


    Date: Sunday, December 26, 2021 @ 20:09:20
  Author: archange
Revision: 1083908

archrelease: copy trunk to community-x86_64

Added:
  kvantum/repos/community-x86_64/
  kvantum/repos/community-x86_64/PKGBUILD
    (from rev 1083907, kvantum/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: kvantum/repos/community-x86_64/PKGBUILD (from rev 1083907, kvantum/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-12-26 20:09:20 UTC (rev 1083908)
@@ -0,0 +1,35 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkgbase=Kvantum
+pkgname=kvantum
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="SVG-based theme engine for Qt5/6 (including config tool and extra themes)"
+arch=(x86_64)
+url="https://github.com/tsujan/Kvantum"
+license=(GPL)
+provides=(kvantum-qt5)
+conflicts=(kvantum-qt5)
+replaces=(kvantum-qt5)
+depends=(qt5-base qt6-base qt5-svg qt6-svg qt5-x11extras libx11 libxext hicolor-icon-theme kwindowsystem)
+makedepends=(cmake qt5-tools qt6-tools)
+source=(${url}/releases/download/V${pkgver}/${_pkgbase}-${pkgver}.tar.xz{,.asc})
+sha256sums=('a3a5339705339ff946c5a0c436b9b33eaf8c14eeffcf20e085045e86f5f355cb' 'SKIP')
+validpgpkeys=(19DFDF3A579BD509DBB572D8BE793007AD22DF7E) # Pedram Pourang <tsujan2000 at gmail.com>
+
+prepare() {
+  # Fix Qt6 build with Qt5 installed
+  sed 's|Qt6 Qt5|Qt6|' -i ${_pkgbase}-${pkgver}/${_pkgbase}/style/CMakeLists.txt
+}
+
+build() {
+  cmake -B build5 -S ${_pkgbase}-${pkgver}/${_pkgbase} -DCMAKE_INSTALL_PREFIX=/usr
+  make -C build5
+  cmake -B build6 -S ${_pkgbase}-${pkgver}/${_pkgbase} -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_QT5=OFF
+  make -C build6
+}
+
+package() {
+  make -C build5 DESTDIR="${pkgdir}" install
+  make -C build6 DESTDIR="${pkgdir}" install
+}



More information about the arch-commits mailing list