commit a59dad87ca074ce6a191f62c7f4f93a79523d206 Author: EnumDev Date: Fri Jan 9 17:54:32 2026 +0200 Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..d60fd9c --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Git repository +REPO="https://code.qt.io/qt/qtwebengine.git" + +# Get tag name using 'git ls-remote' +TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | cut -d'/' -f3 | grep -v '-' | tail -n1) + +# Trim 'v' character in TAG_NAME variable +VERSION=$(echo "$TAG_NAME" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..6979b32 --- /dev/null +++ b/pkg.info @@ -0,0 +1,76 @@ +name: qt6-webengine +description: Provides support for web applications using the Chromium browser project +version: 6.10.1 +revision: 1 +url: https://www.qt.io/ +license: GPL3-only,LGPL3-only,LicenseRef-Qt-Commercial,Qt-GPL-exception-1.0 +architecture: any +type: source +depends: + - alsa-lib + - dbus + - expat + - ffmpeg + - fontconfig + - freetype2 + - gcc-libs + - glib + - glibc + - harfbuzz + - icu + - lcms2 + - libdrm + - libevent + - libglvnd + - libjpeg-turbo + - libpng + - libtiff + - libudev + - libwebp + - libx11 + - libxcb + - libxcomposite + - libxdamage + - libxext + - libxfixes + - libxkbcommon + - libxkbfile + - libxml2 + - libxrandr + - libxslt + - libxtst + - mesa + - minizip + - nspr + - nss + - openjpeg + - opus + - qt6-base + - qt6-declarative + - qt6-positioning + - qt6-webchannel + - re2 + - snappy + - ttf-font + - zlib +optional_depends: + - pipewire +make_depends: + - cmake + - gperf + - jsoncpp + - libepoxy + - libpulse + - libva + - libxcursor + - ninja + - nodejs + - pipewire + - python-html5lib + - qt6-tools + - qt6-websockets +downloads: + - url: https://download.qt.io/official_releases/qt/${BPM_PKG_VERSION%.*}/${BPM_PKG_VERSION}/submodules/qtwebengine-everywhere-src-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 77b5ea6186a0429a6b8e656faedd5cd3e8019d33856ee59637698ab578ead1e3 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..bcd64c4 --- /dev/null +++ b/source.sh @@ -0,0 +1,28 @@ +# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package +# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE +# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + export NINJAFLAGS=-j${BPM_JOBS} + cmake -B build -G Ninja \ + -DCMAKE_MESSAGE_LOG_LEVEL=STATUS \ + -DCMAKE_TOOLCHAIN_FILE=/usr/lib/cmake/Qt6/qt.toolchain.cmake \ + -DQT_FEATURE_webengine_system_ffmpeg=ON \ + -DQT_FEATURE_webengine_system_icu=ON \ + -DQT_FEATURE_webengine_system_re2=ON \ + -DQT_FEATURE_webengine_proprietary_codecs=ON \ + -DQT_FEATURE_webengine_kerberos=ON \ + -DQT_FEATURE_webengine_webrtc_pipewire=ON + cmake --build build +} + +# The package function is executed in the source directory +# This function is used to move the compiled files into the output directory +package() { + DESTDIR="$BPM_OUTPUT" cmake --install build + + # Install package license + install -Dm644 "$BPM_SOURCE"/src/3rdparty/chromium/LICENSE "$BPM_OUTPUT"/usr/share/licenses/qt6-webengine/LICENSE +}