summaryrefslogtreecommitdiff
path: root/skip/qt5-qt3d
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
commitf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch)
tree76fe6267f8307e7630fc6f53ff99a9767ad40de0 /skip/qt5-qt3d
parent05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff)
Work
Diffstat (limited to 'skip/qt5-qt3d')
-rw-r--r--skip/qt5-qt3d/qt5-qt3d.xibuild35
1 files changed, 35 insertions, 0 deletions
diff --git a/skip/qt5-qt3d/qt5-qt3d.xibuild b/skip/qt5-qt3d/qt5-qt3d.xibuild
new file mode 100644
index 0000000..538eefc
--- /dev/null
+++ b/skip/qt5-qt3d/qt5-qt3d.xibuild
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+NAME="qt5-qt3d"
+DESC="C++ and QML APIs for easy inclusion of 3D graphics"
+
+MAKEDEPS=" qt5-qtbase qt5-qtdeclarative vulkan-headers"
+
+PKG_VER=5.15.5_git20220617
+_commit="3cc801c4ae41ff3f155258c4bf7e21bb5b3f6a3d"
+SOURCE="https://invent.kde.org/qt/qt/qt3d/-/archive/$_commit/qt3d-$_commit.tar.gz"
+
+prepare() {
+ apply_patches
+
+ # We need to make the build system think we're running in a git repository
+ # so it correctly symlinks during the build
+ mkdir .git
+}
+
+build() {
+ qmake-qt5
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make INSTALL_ROOT="$PKG_DEST" install
+
+ # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+ find "$PKG_DEST/usr/lib" -type f -name '*.prl' \
+ -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+}