diff --git a/NOTICE b/NOTICE index 55f7499..3fe2ff1 100644 --- a/NOTICE +++ b/NOTICE @@ -35,6 +35,9 @@ packages/folio-touch: Folio, MIT; David Heinemeier Hansson and contributors, htt with the touch mode of https://github.com/OrchardLinux/folio (Henrik Klee). Recipe: upstream Omarchy's (omacom/omarchy-pkgs pkgbuilds/folio, Maintainer: David Heinemeier Hansson) as OrchardLinux/folio's omarchy-a branch packaged it (pkgbuild/omarchy-a, Henrik Klee). +packages/quickshell: Quickshell, LGPL-3.0-only; https://github.com/quickshell-mirror/quickshell. + Recipe, patches/load_qtquick_611.patch and the pacman hook: upstream Omarchy's (omacom/omarchy-pkgs + at 2be7cd983944f50612338124ec6725da95dceb2e, MIT, arch/LICENSE.omarchy), pinned by Berkay Kösebay. ci/rank-mirrors, ci/pacman-download: Henrik Klee, from omarchy-a. The armv7h build container is Arch Linux ARM's official root archive of 2026-08-05, fetched from the diff --git a/README.md b/README.md index 8026477..496c5ae 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ built for both. | `omactivity` | yes | yes | The touch task manager, from [OrchardLinux/omactivity](https://github.com/OrchardLinux/omactivity). Follows its releases (the published pin is newer than v0.1.0; its next release moves it). | | `folio-touch` | yes | yes | Files: Folio with touch mode, from the `touch-mode` branch of [OrchardLinux/folio](https://github.com/OrchardLinux/folio), pinned to a commit until the fork tags a release newer than 0.4.0 (`v0.4.1`; its tag `a0.2.0-1` is no version tag). Provides `folio` and conflicts with upstream Omarchy's. | | `omafox` | yes | yes | Firefox follows the Omarchy theme. | +| `quickshell` | yes | - | Omarchy's Quickshell snapshot (pinned revision, its QtQuick workaround and pacman hook) rebuilt against the Qt in Arch Linux ARM, so the shell does not warn at every start that it was built against another Qt. Replaces Omarchy's and Arch's `quickshell`. | | `omacalc` | - | yes | Omarchy's calculator, which upstream Omarchy publishes for 64-bit only. | | `omarchy-a` | yes | yes | Omarchy A's own files: the touch desktop, its configuration and system defaults, from [OrchardLinux/omarchy-a](https://github.com/OrchardLinux/omarchy-a), built with its Makefile. Follows its releases; nothing is built until its first release that builds this way. Conflicts with upstream Omarchy's `omarchy`. | | `linux-orchard-apple-16k`, `linux-orchard-apple-4k` | yes | - | orchard's kernel, modules, the boards' device trees, initrd and hardware defaults for A9 and later (16 KiB pages) or A7 to A8X: an orchard release's platform layer, installed unchanged by a plain PKGBUILD and APKBUILD; orchard's installer installs this package. Its pacman hooks (apk: scripts and trigger) run orchard's `boot-entries`, which keeps the system's boot entries current and the previous kernel as a fallback. The two conflict. | diff --git a/packages/quickshell/arch/LICENSE.omarchy b/packages/quickshell/arch/LICENSE.omarchy new file mode 100644 index 0000000..f12cfa7 --- /dev/null +++ b/packages/quickshell/arch/LICENSE.omarchy @@ -0,0 +1,20 @@ +Copyright (c) David Heinemeier Hansson + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/quickshell/arch/PKGBUILD b/packages/quickshell/arch/PKGBUILD new file mode 100644 index 0000000..6e5c033 --- /dev/null +++ b/packages/quickshell/arch/PKGBUILD @@ -0,0 +1,69 @@ +# Based on Omarchy's Quickshell recipe, pinned with its QtQuick workaround +# and compatibility hook at omacom/omarchy-pkgs@2be7cd983944f50612338124ec6725da95dceb2e. +pkgname=quickshell +pkgver=0.3.2.r7.g2b4501a +pkgrel=1.1 +pkgdesc='Flexible toolkit for making desktop shells with QtQuick' +arch=('aarch64') +url='https://github.com/quickshell-mirror/quickshell' +license=('LGPL-3.0-only AND MIT') +depends=( + cpptrace + glibc + hicolor-icon-theme + jemalloc + libdrm + libgcc + libglvnd + libpipewire + libstdc++ + libxcb + mesa + pam + polkit + qt6-base + qt6-declarative + qt6-svg + qt6-wayland + wayland +) +makedepends=( + cli11 + cmake + ninja + qt6-shadertools + spirv-tools + vulkan-headers + wayland-protocols +) +conflicts=(quickshell-git) +_commit=2b4501a282689792b62e94f3fb30d8f512324fe6 +source=("quickshell-${_commit}.tar.gz::${url}/archive/${_commit}.tar.gz" + load_qtquick_611.patch + quickshell-check.hook + LICENSE.omarchy) +sha256sums=('e09495c73f8bfbb8637a28e6d73bf84063631b49bb3cb6d3c9702c80dfa78f31' + '23b65d205d825f11a1cd8501acbc6e50250d09a6ce607e2ff8b3cf5d438bd0ce' + '8543e21aeaaa5441b73a679160e7601a957f16c433e8d6bd9257e80bd0e94083' + '717ba1949502290f8e47688ae2e323acd06c8ca47aec9f7596b15f678c1af4a2') + +prepare() { + cd "${pkgname}-${_commit}" + patch -Np1 --fuzz=0 -i "${srcdir}/load_qtquick_611.patch" +} + +build() { + cmake -S "${pkgname}-${_commit}" -B build -G Ninja \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D INSTALL_QML_PREFIX=lib/qt6/qml \ + -D GIT_REVISION="${_commit}" \ + -D DISTRIBUTOR='OrchardLinux' + cmake --build build +} + +package() { + DESTDIR="${pkgdir}" cmake --install build + install -Dm644 quickshell-check.hook -t "${pkgdir}/usr/share/libalpm/hooks" + install -Dm644 "${pkgname}-${_commit}/LICENSE" LICENSE.omarchy -t "${pkgdir}/usr/share/licenses/${pkgname}" +} diff --git a/packages/quickshell/arch/quickshell-check.hook b/packages/quickshell/arch/quickshell-check.hook new file mode 100644 index 0000000..a7a97f7 --- /dev/null +++ b/packages/quickshell/arch/quickshell-check.hook @@ -0,0 +1,10 @@ +[Trigger] +Operation = Upgrade +Operation = Install +Type = Package +Target = qt6-base +Target = qt6-wayland +[Action] +Description = Querying Quickshell compatibility after Qt6 update... +When = PostTransaction +Exec = /usr/bin/quickshell --private-check-compat diff --git a/packages/quickshell/patches/load_qtquick_611.patch b/packages/quickshell/patches/load_qtquick_611.patch new file mode 100644 index 0000000..660965b --- /dev/null +++ b/packages/quickshell/patches/load_qtquick_611.patch @@ -0,0 +1,203 @@ +diff --git c/src/core/generation.cpp i/src/core/generation.cpp +index ad5dca2..878abbc 100644 +--- c/src/core/generation.cpp ++++ i/src/core/generation.cpp +@@ -38,7 +38,7 @@ static QHash g_generations; // NOLINT + EngineGeneration::EngineGeneration(const QDir& rootPath, QmlScanner scanner) + : rootPath(rootPath) + , scanner(std::move(scanner)) +- , urlInterceptor(this->rootPath) ++ , urlInterceptor(this->rootPath, this->scanner) + , interceptNetFactory(this->rootPath, this->scanner.fileIntercepts) + , engine(new QQmlEngine()) { + g_generations.insert(this->engine, this); +diff --git c/src/core/qsintercept.cpp i/src/core/qsintercept.cpp +index 6687681..8f14178 100644 +--- c/src/core/qsintercept.cpp ++++ i/src/core/qsintercept.cpp +@@ -2,6 +2,7 @@ + #include + + #include ++#include + #include + #include + #include +@@ -16,6 +17,7 @@ + #include + + #include "logcat.hpp" ++#include "scan.hpp" + + QS_LOGGING_CATEGORY(logQsIntercept, "quickshell.interceptor", QtWarningMsg); + +@@ -24,6 +26,13 @@ QUrl QsUrlInterceptor::intercept( + QQmlAbstractUrlInterceptor::DataType type + ) { + auto url = originalUrl; ++ if (this->scanner.omarchyLoadPatch && type == QQmlAbstractUrlInterceptor::DataType::QmlFile ++ && url.isLocalFile()) ++ { ++ auto path = QFileInfo(url.toLocalFile()).absoluteFilePath(); ++ this->scanner.scanDir(QFileInfo(path).dir()); ++ if (this->scanner.fileIntercepts.contains(path)) url.setScheme("qs"); ++ } + + if (url.scheme() == "root") { + url.setScheme("qs"); +diff --git c/src/core/qsintercept.hpp i/src/core/qsintercept.hpp +index c3d8b55..ccfd651 100644 +--- c/src/core/qsintercept.hpp ++++ i/src/core/qsintercept.hpp +@@ -14,14 +14,19 @@ + + QS_DECLARE_LOGGING_CATEGORY(logQsIntercept); + ++class QmlScanner; ++ + class QsUrlInterceptor: public QQmlAbstractUrlInterceptor { + public: +- explicit QsUrlInterceptor(const QDir& configRoot): configRoot(configRoot) {} ++ QsUrlInterceptor(const QDir& configRoot, QmlScanner& scanner) ++ : configRoot(configRoot) ++ , scanner(scanner) {} + + QUrl intercept(const QUrl& originalUrl, QQmlAbstractUrlInterceptor::DataType type) override; + + private: + QDir configRoot; ++ QmlScanner& scanner; + }; + + class QsInterceptDataReply: public QNetworkReply { +diff --git c/src/core/scan.cpp i/src/core/scan.cpp +index 9f33302..de443ba 100644 +--- c/src/core/scan.cpp ++++ i/src/core/scan.cpp +@@ -14,6 +14,7 @@ + #include + #include + #include ++#include + #include + #include + +@@ -22,6 +23,12 @@ + + QS_LOGGING_CATEGORY(logQmlScanner, "quickshell.qmlscanner", QtWarningMsg); + ++namespace { ++const auto unversionedQtQuickImport = QRegularExpression( ++ QStringLiteral(R"(^([ \t]*import[ \t]+QtQuick)(?=[ \t]*(?:as[ \t]|;|//|/\*|$)))") ++); ++} // namespace ++ + bool QmlScanner::readAndHashFile(const QString& path, QByteArray& data) { + auto file = QFile(path); + if (!file.open(QFile::ReadOnly)) return false; +@@ -65,13 +72,19 @@ void QmlScanner::scanDir(const QDir& dir) { + ) << "Found qmldir file, qmldir synthesization will be disabled for directory" + << path; + seenQmldir = true; +- } else if (name.at(0).isUpper() && name.endsWith(".qml")) { +- auto& entry = entries.emplaceBack(); ++ } else if (name.endsWith(".qml") && (this->omarchyLoadPatch || name.at(0).isUpper())) { ++ if (name.at(0).isUpper()) { ++ auto& entry = entries.emplaceBack(); + +- if (this->scanQmlFile(dir.filePath(name), entry.singleton, entry.internal)) { +- entry.name = name; ++ if (this->scanQmlFile(dir.filePath(name), entry.singleton, entry.internal)) { ++ entry.name = name; ++ } else { ++ entries.pop_back(); ++ } + } else { +- entries.pop_back(); ++ bool singleton = false; ++ bool internal = false; ++ this->scanQmlFile(dir.filePath(name), singleton, internal); + } + } else if (name.at(0).isUpper() && name.endsWith(".qml.json")) { + if (this->scanQmlJson(dir.filePath(name))) { +@@ -121,9 +134,10 @@ void QmlScanner::scanDir(const QDir& dir) { + qCDebug(logQmlScanner) << "Synthesized qmldir for" << path << qPrintable("\n" + qmldir); + this->fileIntercepts.insert(QDir(path).filePath("qmldir"), qmldir); + } ++ + } + +-bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& internal) { ++bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& internal, bool isRoot) { + if (this->scannedFiles.contains(path)) return false; + this->scannedFiles.push_back(path); + +@@ -159,6 +173,9 @@ bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& interna + if (!sourceMasked && inHeader) { + if (!singleton && line == "pragma Singleton") { + singleton = true; ++ } else if (isRoot && line == "//@ pragma OmarchyLoadPatch") { ++ // Qt 6.12 added a QtQuick Color singleton which shadows Omarchy's Color singleton. ++ this->omarchyLoadPatch = true; + } else if (line.startsWith("import")) { + // we don't care about "import qs" as we always load the root folder + if (auto importCursor = line.indexOf(" qs."); importCursor != -1) { +@@ -226,6 +243,15 @@ bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& interna + } + } + ++ if (!sourceMasked && this->omarchyLoadPatch) { ++ auto patchedLine = ++ QString(rawLine).replace(unversionedQtQuickImport, QStringLiteral("\\1 6.11")); ++ if (patchedLine != rawLine) { ++ rawLine = patchedLine; ++ isOverridden = true; ++ } ++ } ++ + if (!hideMask && sourceMasked) overrideText.append("// MASKED: " % rawLine % '\n'); + else overrideText.append(rawLine % '\n'); + +@@ -285,7 +311,7 @@ bool QmlScanner::scanQmlFile(const QString& path, bool& singleton, bool& interna + void QmlScanner::scanQmlRoot(const QString& path) { + bool singleton = false; + bool internal = false; +- this->scanQmlFile(path, singleton, internal); ++ this->scanQmlFile(path, singleton, internal, true); + } + + bool QmlScanner::scanQmlJson(const QString& path) { +diff --git c/src/core/scan.hpp i/src/core/scan.hpp +index 7d807e1..932c0b0 100644 +--- c/src/core/scan.hpp ++++ i/src/core/scan.hpp +@@ -25,6 +25,7 @@ public: + QVector scannedFiles; + QHash fileHashes; + QHash fileIntercepts; ++ bool omarchyLoadPatch = false; + + struct ScanError { + QString file; +@@ -40,7 +41,7 @@ public: + private: + QDir rootPath; + +- bool scanQmlFile(const QString& path, bool& singleton, bool& internal); ++ bool scanQmlFile(const QString& path, bool& singleton, bool& internal, bool isRoot = false); + bool scanQmlJson(const QString& path); + [[nodiscard]] static QPair jsonToQml(const QJsonValue& value, int indent = 0); + +diff --git c/src/launch/launch.cpp i/src/launch/launch.cpp +index 1edd60c..f2542ae 100644 +--- c/src/launch/launch.cpp ++++ i/src/launch/launch.cpp +@@ -124,6 +124,8 @@ int launch(const LaunchArgs& args, char** argv) { + pragmas.stateDir = pragma.sliced(9).trimmed(); + } else if (pragma.startsWith("CacheDir ")) { + pragmas.cacheDir = pragma.sliced(9).trimmed(); ++ } else if (pragma == "OmarchyLoadPatch") { ++ // Applied later by the QML scanner. + } else { + qWarning() << "Unrecognized pragma" << pragma; + } diff --git a/packages/quickshell/source.json b/packages/quickshell/source.json new file mode 100644 index 0000000..3ebc5f2 --- /dev/null +++ b/packages/quickshell/source.json @@ -0,0 +1,7 @@ +{ + "repository": "quickshell-mirror/quickshell", + "version": "0.3.2.r7.g2b4501a", + "commit": "2b4501a282689792b62e94f3fb30d8f512324fe6", + "url": "https://github.com/quickshell-mirror/quickshell/archive/2b4501a282689792b62e94f3fb30d8f512324fe6.tar.gz", + "sha256": "e09495c73f8bfbb8637a28e6d73bf84063631b49bb3cb6d3c9702c80dfa78f31" +}