From 04128d21eaea55930f493320c0f29684af4bff99 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Tue, 11 Nov 2025 12:23:50 -0500
Subject: qt5-webchannel: initial inclusion

---
 linhes/qt5-webchannel/LICENSE           | 12 +++++++++
 linhes/qt5-webchannel/LICENSES/0BSD.txt |  1 +
 linhes/qt5-webchannel/PKGBUILD          | 46 +++++++++++++++++++++++++++++++++
 linhes/qt5-webchannel/README.md         |  3 +++
 linhes/qt5-webchannel/REUSE.toml        | 22 ++++++++++++++++
 5 files changed, 84 insertions(+)
 create mode 100644 linhes/qt5-webchannel/LICENSE
 create mode 120000 linhes/qt5-webchannel/LICENSES/0BSD.txt
 create mode 100644 linhes/qt5-webchannel/PKGBUILD
 create mode 100644 linhes/qt5-webchannel/README.md
 create mode 100644 linhes/qt5-webchannel/REUSE.toml

diff --git a/linhes/qt5-webchannel/LICENSE b/linhes/qt5-webchannel/LICENSE
new file mode 100644
index 0000000..b87c5e4
--- /dev/null
+++ b/linhes/qt5-webchannel/LICENSE
@@ -0,0 +1,12 @@
+Copyright Arch Linux Contributors
+
+Permission to use, copy, modify, and/or distribute this software for
+any purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
+WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
+FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
+DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
+AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/linhes/qt5-webchannel/LICENSES/0BSD.txt b/linhes/qt5-webchannel/LICENSES/0BSD.txt
new file mode 120000
index 0000000..ea5b606
--- /dev/null
+++ b/linhes/qt5-webchannel/LICENSES/0BSD.txt
@@ -0,0 +1 @@
+../LICENSE
\ No newline at end of file
diff --git a/linhes/qt5-webchannel/PKGBUILD b/linhes/qt5-webchannel/PKGBUILD
new file mode 100644
index 0000000..970c072
--- /dev/null
+++ b/linhes/qt5-webchannel/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+
+pkgname=qt5-webchannel
+_basever=5.15.18
+pkgver=5.15.18+kde+r3
+pkgrel=1
+_commit=2a157921861e651f43456cb7941b250c89feb736
+arch=('x86_64')
+url='https://www.qt.io'
+license=('GPL3' 'LGPL3' 'FDL' 'custom')
+pkgdesc='Provides access to QObject or QML objects from HTML clients for seamless integration of Qt applications with HTML/JavaScript clients'
+depends=('qt5-declarative')
+makedepends=('git')
+groups=('qt5')
+_pkgfqn=${pkgname/5-/}
+source=(kde-$_pkgfqn::git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit)
+sha256sums=('fdff50abd1a3c5de03657f229caba43e68522911ade28ad0f6d6e53bc7517dde')
+
+pkgver() {
+  cd kde-$_pkgfqn
+  echo "$_basever+kde+r"`git rev-list --count v$_basever-lts-lgpl..$_commit` | sed -e 's|+kde+r0||'
+}
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+
+  qmake ../kde-$_pkgfqn
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+    -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -d "$pkgdir"/usr/share/licenses
+  ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
+}
diff --git a/linhes/qt5-webchannel/README.md b/linhes/qt5-webchannel/README.md
new file mode 100644
index 0000000..9c4dc74
--- /dev/null
+++ b/linhes/qt5-webchannel/README.md
@@ -0,0 +1,3 @@
+This package is part of the `qt5` suite, and is managed by the scripts at https://gitlab.archlinux.org/archlinux/kde-build.
+
+Do not upgrade this package individually, or make any format changes to the PKGBUILD without checking with the Qt package maintainers first.
diff --git a/linhes/qt5-webchannel/REUSE.toml b/linhes/qt5-webchannel/REUSE.toml
new file mode 100644
index 0000000..8501755
--- /dev/null
+++ b/linhes/qt5-webchannel/REUSE.toml
@@ -0,0 +1,22 @@
+version = 1
+
+[[annotations]]
+path = [
+    "PKGBUILD",
+    "README.md",
+    "keys/**",
+    ".SRCINFO",
+    ".nvchecker.toml",
+    "*.install",
+    "*.sysusers",
+    "*.tmpfiles",
+    "*.logrotate",
+    "*.pam",
+    "*.service",
+    "*.socket",
+    "*.timer",
+    "*.desktop",
+    "*.hook",
+]
+SPDX-FileCopyrightText = "Arch Linux contributors"
+SPDX-License-Identifier = "0BSD"
-- 
cgit v0.12

