summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartchus2024-10-08 23:12:03 +0200
committerMartchus2024-10-08 23:12:03 +0200
commit0b4c6432c004f1dec0ff4787953f6995162cca99 (patch)
tree769db73f693efaa5703c2c7adecc501afb2943b6
downloadaur-0b4c6432c004f1dec0ff4787953f6995162cca99.tar.gz
Update to 6.8.0
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD56
-rw-r--r--PKGBUILD.sh.ep1
-rw-r--r--qtlocation-sha256.txt1
4 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..dbeb2861048b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = android-armv7a-eabi-qt6-location
+ pkgdesc = Helps you create viable mapping solutions using the data available from some of the popular location services (android)
+ pkgver = 6.8.0
+ pkgrel = 1
+ url = https://www.qt.io
+ arch = any
+ groups = android-armv7a-eabi-qt6
+ license = GPL3
+ license = LGPL3
+ license = FDL
+ license = custom
+ makedepends = android-cmake
+ makedepends = android-armv7a-eabi-qt6-shadertools
+ makedepends = android-armv7a-eabi-qt6-declarative
+ makedepends = qt6-shadertools
+ makedepends = qt6-declarative
+ makedepends = ninja
+ depends = android-armv7a-eabi-qt6-declarative
+ depends = android-armv7a-eabi-qt6-positioning
+ options = !strip
+ options = !buildflags
+ options = staticlibs
+ options = !emptydirs
+ source = https://download.qt.io/official_releases/qt/6.8/6.8.0/submodules/qtlocation-everywhere-src-6.8.0.tar.xz
+ sha256sums = a0c487f4b36965ea921127033cc227acf1f292ba577081842c5b75d2ef9731a0
+
+pkgname = android-armv7a-eabi-qt6-location
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..7cd8f50af5a8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Martchus <martchus@gmx.net>
+
+# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
+# you also find the URL of a binary repository.
+
+_android_arch=armv7a-eabi
+pkgname=android-$_android_arch-qt6-location
+_qtver=6.8.0
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=(any)
+url='https://www.qt.io'
+license=(GPL3 LGPL3 FDL custom)
+pkgdesc='Helps you create viable mapping solutions using the data available from some of the popular location services (android)'
+depends=('android-armv7a-eabi-qt6-declarative' 'android-armv7a-eabi-qt6-positioning')
+makedepends=('android-cmake' 'android-armv7a-eabi-qt6-shadertools' 'android-armv7a-eabi-qt6-declarative' 'qt6-shadertools' 'qt6-declarative' 'ninja')
+options=('!strip' '!buildflags' 'staticlibs' '!emptydirs')
+groups=(android-${_android_arch}-qt6)
+_pkgfqn="qtlocation-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz")
+sha256sums=('a0c487f4b36965ea921127033cc227acf1f292ba577081842c5b75d2ef9731a0')
+
+build() {
+ export PATH=/usr/lib/jvm/java-17-openjdk/bin:$PATH
+ source android-env ${_android_arch}
+ android-${_android_arch}-cmake -G Ninja -B build-$_android_arch -S $_pkgfqn \
+ -DCMAKE_FIND_ROOT_PATH="${ANDROID_PREFIX}" \
+ -DQT_BINARY_DIR=${ANDROID_PREFIX_BIN} \
+ -DQT_INCLUDE_DIRS_NO_SYSTEM=ON \
+ -DQT_HOST_PATH=/usr \
+ -DANDROID_SDK_ROOT=${ANDROID_HOME} \
+ -DANDROID_NDK_ROOT=${ANDROID_NDK_HOME} \
+ -DANDROID_STL="c++_shared" \
+ -DFEATURE_pkg_config=ON \
+ -DFEATURE_geoservices_mapbox=OFF \
+ -DFEATURE_geoservices_mapboxgl=OFF \
+ -DFEATURE_geoservices_nokia=OFF
+ cmake --build build-$_android_arch
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build-$_android_arch
+
+ # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+ find "$pkgdir/${ANDROID_PREFIX}" -type f -name '*.prl' \
+ -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+ find ${pkgdir}/${ANDROID_PREFIX} -type f -name 'lib*.so' -exec ${ANDROID_STRIP} -g --strip-unneeded {} \;
+ find ${pkgdir}/${ANDROID_PREFIX} -type f -name 'lib*.a' -exec ${ANDROID_STRIP} -g {} \;
+ [[ -d "${pkgdir}/${ANDROID_PREFIX}/share/doc" ]] && rm -r "${pkgdir}/${ANDROID_PREFIX}/share/doc" || true
+
+ install -d "$pkgdir"/usr/share/licenses
+ ln -s /usr/share/licenses/android-$_android_arch-qt6-base "$pkgdir"/usr/share/licenses/$pkgname
+
+}
+
diff --git a/PKGBUILD.sh.ep b/PKGBUILD.sh.ep
new file mode 100644
index 000000000000..e9dbcf2c8701
--- /dev/null
+++ b/PKGBUILD.sh.ep
@@ -0,0 +1 @@
+%= include "$default_package_name/android-aarch64/PKGBUILD";
diff --git a/qtlocation-sha256.txt b/qtlocation-sha256.txt
new file mode 100644
index 000000000000..f22573ec2236
--- /dev/null
+++ b/qtlocation-sha256.txt
@@ -0,0 +1 @@
+a0c487f4b36965ea921127033cc227acf1f292ba577081842c5b75d2ef9731a0