summaryrefslogtreecommitdiff
path: root/repo/qt5-qttools/qt5-qttools.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-04 15:08:04 +0100
committerdavidovski <david@davidovski.xyz>2022-06-04 15:08:04 +0100
commit873665024ebfaa761ee49b508a79db7178aeb778 (patch)
tree6cd3b4ce3a9f4b0586ffa48e73a6ba4c8da2db43 /repo/qt5-qttools/qt5-qttools.xibuild
parent4445f6e15185f58dc599390ab74df3ca19b437b7 (diff)
added gnupg
Diffstat (limited to 'repo/qt5-qttools/qt5-qttools.xibuild')
-rw-r--r--repo/qt5-qttools/qt5-qttools.xibuild69
1 files changed, 69 insertions, 0 deletions
diff --git a/repo/qt5-qttools/qt5-qttools.xibuild b/repo/qt5-qttools/qt5-qttools.xibuild
new file mode 100644
index 0000000..2c7982b
--- /dev/null
+++ b/repo/qt5-qttools/qt5-qttools.xibuild
@@ -0,0 +1,69 @@
+#!/bin/sh
+
+NAME="qt5-qttools"
+DESC="Qt5 - QtTool components"
+
+MAKEDEPS=" clang qt5-qtbase"
+
+PKG_VER=5.15.3_git20201202
+_commit="33693a928986006d79c1ee743733cde5966ac402"
+SOURCE="https://invent.kde.org/qt/qt/qttools/-/archive/$_commit/qttools-$_commit.tar.gz"
+
+ADDITIONAL="
+assistant-qt5.desktop
+designer-qt5.desktop
+linguist-qt5.desktop
+qdbusviewer-qt5.desktop
+"
+
+_qt5_prefix=/usr/lib/qt5
+prepare() {
+
+ # 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
+}
+
+package() {
+ make install INSTALL_ROOT="$PKG_DEST"
+
+ # -qt5 symlinks
+ 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
+
+ for i in $source; do
+ case $i in
+ *.desktop) install -Dm644 "$BUILD_ROOT"/$i \
+ "$PKG_DEST"/usr/share/applications/$i ;;
+ esac
+ done
+
+ # icons
+ install -m644 -p -D src/assistant/assistant/images/assistant.png \
+ "$PKG_DEST"/usr/share/icons/hicolor/32x32/apps/assistant-qt5.png
+ install -m644 -p -D src/assistant/assistant/images/assistant-128.png \
+ "$PKG_DEST"/usr/share/icons/hicolor/128x128/apps/assistant-qt5.png
+ install -m644 -p -D src/designer/src/designer/images/designer.png \
+ "$PKG_DEST"/usr/share/icons/hicolor/32x32/apps/designer-qt5.png
+ install -m644 -p -D src/qdbus/qdbusviewer/images/qdbusviewer.png \
+ "$PKG_DEST"/usr/share/icons/hicolor/32x32/apps/qdbusviewer-qt5.png
+ install -m644 -p -D src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
+ "$PKG_DEST"/usr/share/icons/hicolor/128x128/apps/qdbusviewer-qt5.png
+ # linguist icons
+ for icon in src/linguist/linguist/images/icons/linguist-*-32.png ; do
+ size=$(echo ${icon##*/} | cut -d- -f2)
+ install -p -m644 -D $icon \
+ "$PKG_DEST"/usr/share/icons/hicolor/"$size"x"$size"/apps/linguist.png
+ 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' {} \;
+}