From da5a0bacb5458afd920c7e92811c1bc2046acea3 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 26 Mar 2026 13:18:17 -0400 Subject: qt5-location: initial inclusion --- linhes/qt5-location/LICENSE | 12 ++++++++ linhes/qt5-location/LICENSES/0BSD.txt | 1 + linhes/qt5-location/PKGBUILD | 53 +++++++++++++++++++++++++++++++++++ linhes/qt5-location/README.md | 3 ++ linhes/qt5-location/REUSE.toml | 22 +++++++++++++++ 5 files changed, 91 insertions(+) create mode 100644 linhes/qt5-location/LICENSE create mode 120000 linhes/qt5-location/LICENSES/0BSD.txt create mode 100644 linhes/qt5-location/PKGBUILD create mode 100644 linhes/qt5-location/README.md create mode 100644 linhes/qt5-location/REUSE.toml diff --git a/linhes/qt5-location/LICENSE b/linhes/qt5-location/LICENSE new file mode 100644 index 0000000..b87c5e4 --- /dev/null +++ b/linhes/qt5-location/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-location/LICENSES/0BSD.txt b/linhes/qt5-location/LICENSES/0BSD.txt new file mode 120000 index 0000000..ea5b606 --- /dev/null +++ b/linhes/qt5-location/LICENSES/0BSD.txt @@ -0,0 +1 @@ +../LICENSE \ No newline at end of file diff --git a/linhes/qt5-location/PKGBUILD b/linhes/qt5-location/PKGBUILD new file mode 100644 index 0000000..3564583 --- /dev/null +++ b/linhes/qt5-location/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: Felix Yan +# Contributor: Andrea Scarpino + +pkgname=qt5-location +_basever=5.15.18 +pkgver=5.15.18+kde+r7 +pkgrel=2 +_commit=ba48a8b5cedd157d972c08d371ac2581db166bf7 +arch=('x86_64') +url='https://www.qt.io' +license=('GPL3' 'LGPL3' 'FDL' 'custom') +pkgdesc='Provides access to position, satellite and area monitoring classes' +depends=('qt5-declarative') +makedepends=('git') +groups=('qt5') +_pkgfqn=${pkgname/5-/} +source=(kde-$_pkgfqn::git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit + git+https://invent.kde.org/qt/qt/qtlocation-mapboxgl.git) +sha256sums=('4a6bfee705b322f4cd044949be217f822b9f697e5e1ec228fdc3f31c29558e13' + 'SKIP') + +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 + + cd kde-$_pkgfqn + git submodule init + git submodule set-url src/3rdparty/mapbox-gl-native "$srcdir"/qtlocation-mapboxgl + git -c protocol.file.allow=always submodule update +} + +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-location/README.md b/linhes/qt5-location/README.md new file mode 100644 index 0000000..9c4dc74 --- /dev/null +++ b/linhes/qt5-location/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-location/REUSE.toml b/linhes/qt5-location/REUSE.toml new file mode 100644 index 0000000..8501755 --- /dev/null +++ b/linhes/qt5-location/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