summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartchus2021-05-08 14:46:39 +0200
committerMartchus2021-05-08 14:46:39 +0200
commitdace5b144b078b5d899bbab921d78b5e67ef5148 (patch)
tree28229c3c22df035ee1105a16df18728fbfe2edf7
downloadaur-dace5b144b078b5d899bbab921d78b5e67ef5148.tar.gz
Update to 6.1.0
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD52
-rw-r--r--PKGBUILD.sh.ep12
-rw-r--r--qtscxml-sha256.txt1
4 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..d1f22743aed0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+pkgbase = android-aarch64-qt6-scxml
+ pkgdesc = Static and runtime integration of SCXML models into Qt6 code (android)
+ pkgver = 6.1.0
+ pkgrel = 1
+ url = https://www.qt.io
+ arch = any
+ groups = android-aarch64-qt6
+ license = GPL3
+ license = LGPL3
+ license = FDL
+ license = custom
+ makedepends = android-cmake
+ makedepends = android-aarch64-qt6-declarative
+ makedepends = qt6-declarative
+ makedepends = qt6-scxml
+ makedepends = ninja
+ makedepends = java-environment-openjdk=8
+ depends = android-aarch64-qt6-base
+ optdepends = android-aarch64-qt6-declarative: QML bindings
+ options = !strip
+ options = !buildflags
+ options = staticlibs
+ options = !emptydirs
+ source = https://download.qt.io/official_releases/qt/6.1/6.1.0/submodules/qtscxml-everywhere-src-6.1.0.tar.xz
+ sha256sums = c835809c2e194171e044464744ee516abce647fb428aa896d9f990e217c363ea
+
+pkgname = android-aarch64-qt6-scxml
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..5ece02c1bc8c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# 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=aarch64
+pkgname=android-$_android_arch-qt6-scxml
+_qtver=6.1.0
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=(any)
+url='https://www.qt.io'
+license=(GPL3 LGPL3 FDL custom)
+pkgdesc='Static and runtime integration of SCXML models into Qt6 code (android)'
+depends=('android-aarch64-qt6-base')
+optdepends=('android-aarch64-qt6-declarative: QML bindings')
+makedepends=('android-cmake' 'android-aarch64-qt6-declarative' 'qt6-declarative' 'qt6-scxml' 'ninja' 'java-environment-openjdk=8')
+options=('!strip' '!buildflags' 'staticlibs' '!emptydirs')
+groups=(android-${_android_arch}-qt6)
+_pkgfqn="qtscxml-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz")
+sha256sums=('c835809c2e194171e044464744ee516abce647fb428aa896d9f990e217c363ea')
+
+build() {
+ 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
+ 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..191cf8559dc7
--- /dev/null
+++ b/PKGBUILD.sh.ep
@@ -0,0 +1,12 @@
+% layout 'android-qt6-module';
+\
+_qtver=6.1.0
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=(any)
+url='https://www.qt.io'
+license=(GPL3 LGPL3 FDL custom)
+pkgdesc='Static and runtime integration of SCXML models into Qt6 code (android)'
+depends=(<%== qt6deps qw(base) %>)
+optdepends=(<%== qt6optdeps declarative => 'QML bindings' %>)
+makedepends=('android-cmake<%== $static_suffix %>' <%== qt6deps qw(declarative) %> 'qt6-declarative' 'qt6-scxml' 'ninja' 'java-environment-openjdk=8')
diff --git a/qtscxml-sha256.txt b/qtscxml-sha256.txt
new file mode 100644
index 000000000000..c250a3436de2
--- /dev/null
+++ b/qtscxml-sha256.txt
@@ -0,0 +1 @@
+c835809c2e194171e044464744ee516abce647fb428aa896d9f990e217c363ea