From 2cbd85b9c3957c53600e215b16c511a687407e2f Mon Sep 17 00:00:00 2001 From: Adam Pschorr Date: Mon, 21 Mar 2022 12:19:12 -0600 Subject: [PATCH 1/3] 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 5c9d9a95bdd11943bd4f8b5a321526d864c8c9ea Mon Sep 17 00:00:00 2001 From: Adam Pschorr Date: Mon, 21 Mar 2022 20:18:13 -0600 Subject: [PATCH 2/3] 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 From 7951a454c67f59828c7db2ee80ddf34f94470f1f Mon Sep 17 00:00:00 2001 From: Adam Pschorr Date: Tue, 22 Mar 2022 18:24:43 -0600 Subject: [PATCH 3/3] fixed template for qt6ct, supports all archs --- srcpkgs/qt6ct/template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srcpkgs/qt6ct/template b/srcpkgs/qt6ct/template index 7ad14a312392..1e443df1dc20 100644 --- a/srcpkgs/qt6ct/template +++ b/srcpkgs/qt6ct/template @@ -3,7 +3,9 @@ pkgname=qt6ct version=0.5 revision=1 build_style=cmake +configure_args="-DQT_HOST_PATH=/usr" hostmakedepends="qt6-tools-devel" +makedepends="qt6-base-devel" depends="qt6-base qt6-svg" short_desc="Qt6 Configuration Tool" maintainer="Adam Pschorr "