diff options
author | davidovski <david@davidovski.xyz> | 2022-06-06 21:25:48 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-06 21:25:48 +0000 |
commit | ccc722b7ed330198d82a3cf28ead76d6d107a70a (patch) | |
tree | 7611b3cc4f3ca681524fa28b174a0253eb802e0e /repo/qt5-qtdeclarative/qt5-qtdeclarative.xibuild | |
parent | 9ee32689f0b57b9e1de6d22c84ce8e3700b6122b (diff) |
added java
Diffstat (limited to 'repo/qt5-qtdeclarative/qt5-qtdeclarative.xibuild')
-rw-r--r-- | repo/qt5-qtdeclarative/qt5-qtdeclarative.xibuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/repo/qt5-qtdeclarative/qt5-qtdeclarative.xibuild b/repo/qt5-qtdeclarative/qt5-qtdeclarative.xibuild new file mode 100644 index 0000000..135f6c3 --- /dev/null +++ b/repo/qt5-qtdeclarative/qt5-qtdeclarative.xibuild @@ -0,0 +1,51 @@ +#!/bin/sh + +NAME="qt5-qtdeclarative" +DESC="Qt5 - QtDeclarative component" + +MAKEDEPS=" python qt5-qtbase " + +PKG_VER=5.15.3_git20220209 +_commit="29ee9a0e9f02ec74153a2cf09dc63722bc273544" +SOURCE="https://invent.kde.org/qt/qt/qtdeclarative/-/archive/$_commit/qtdeclarative-$_commit.tar.gz" + +ADDITIONAL=" +link-libatomic-on-rv64.patch +qt-musl-stackbottom.patch +" + +prepare() { + apply_patches + mkdir .git + + export CFLAGS="$CFLAGS -O2" + export CPPFLAGS="$CPPFLAGS -O2" + export CXXFLAGS="$CXXFLAGS -O2" +} + + +build() { + # HACK so calls to "python" get what we want + ln -s /usr/bin/python3 python + export PATH="$(pwd):$PATH" + + qmake-qt5 + make +} + +check() { + make check +} + +package() { + make install INSTALL_ROOT="$PKG_DEST" + + mkdir -p "$PKG_DEST"/usr/bin/ + for i in "$PKG_DEST"/"$_qt5_prefix"/bin/*; do + ln -s ../lib/qt5/bin/${i##*/} "$PKG_DEST"/usr/bin/${i##*/}-qt5 + done + + # 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' {} \; +} |