From 01656a9c0df8d454f16df04fe086a43493d91b9c Mon Sep 17 00:00:00 2001 From: Adam Pschorr Date: Mon, 21 Mar 2022 12:19:12 -0600 Subject: [PATCH 1/2] New package: qt6ct-0.5 --- srcpkgs/qt6ct/INSTALL.msg | 2 ++ srcpkgs/qt6ct/files/qt6ct.sh | 6 ++++++ srcpkgs/qt6ct/template | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 srcpkgs/qt6ct/INSTALL.msg create mode 100644 srcpkgs/qt6ct/files/qt6ct.sh create mode 100644 srcpkgs/qt6ct/template diff --git a/srcpkgs/qt6ct/INSTALL.msg b/srcpkgs/qt6ct/INSTALL.msg new file mode 100644 index 000000000000..8485434a339f --- /dev/null +++ b/srcpkgs/qt6ct/INSTALL.msg @@ -0,0 +1,2 @@ +NOTE: You may have to logout and log back in or reboot to apply qt6ct +theme environment variables properly diff --git a/srcpkgs/qt6ct/files/qt6ct.sh b/srcpkgs/qt6ct/files/qt6ct.sh new file mode 100644 index 000000000000..b36c5b523174 --- /dev/null +++ b/srcpkgs/qt6ct/files/qt6ct.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env sh + +export QT_QPA_PLATFORMTHEME=qt6ct +if [ "$XDG_SESSION_TYPE" = "wayland" ]; then + export QT_QPA_PLATFORM=wayland +fi diff --git a/srcpkgs/qt6ct/template b/srcpkgs/qt6ct/template new file mode 100644 index 000000000000..7ad14a312392 --- /dev/null +++ b/srcpkgs/qt6ct/template @@ -0,0 +1,18 @@ +# Template file for 'qt6ct' +pkgname=qt6ct +version=0.5 +revision=1 +build_style=cmake +hostmakedepends="qt6-tools-devel" +depends="qt6-base qt6-svg" +short_desc="Qt6 Configuration Tool" +maintainer="Adam Pschorr " +license="BSD-2-Clause" +homepage="https://github.com/trialuser02/qt6ct" +distfiles="https://github.com/trialuser02/qt6ct/archive/refs/tags/${version}.tar.gz" +checksum=0fea8e5295e4ebebfae36f4862aaa67859238312d7a055b252cc53b281d69e0d + +post_install() { + vlicense COPYING + vinstall ${FILESDIR}/qt6ct.sh 644 etc/profile.d +} From 989cdeee0d34ba084fbe27d2de2bc1132af3642a Mon Sep 17 00:00:00 2001 From: Adam Pschorr Date: Mon, 21 Mar 2022 20:18:13 -0600 Subject: [PATCH 2/2] revised qt6ct template and removed INSTALL.msg --- srcpkgs/qt6ct/INSTALL.msg | 2 -- srcpkgs/qt6ct/files/qt6ct.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 srcpkgs/qt6ct/INSTALL.msg diff --git a/srcpkgs/qt6ct/INSTALL.msg b/srcpkgs/qt6ct/INSTALL.msg deleted file mode 100644 index 8485434a339f..000000000000 --- a/srcpkgs/qt6ct/INSTALL.msg +++ /dev/null @@ -1,2 +0,0 @@ -NOTE: You may have to logout and log back in or reboot to apply qt6ct -theme environment variables properly diff --git a/srcpkgs/qt6ct/files/qt6ct.sh b/srcpkgs/qt6ct/files/qt6ct.sh index b36c5b523174..e4e7708d8a29 100644 --- a/srcpkgs/qt6ct/files/qt6ct.sh +++ b/srcpkgs/qt6ct/files/qt6ct.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh -export QT_QPA_PLATFORMTHEME=qt6ct +export QT_QPA_PLATFORMTHEME=qt5ct if [ "$XDG_SESSION_TYPE" = "wayland" ]; then export QT_QPA_PLATFORM=wayland fi