diff options
author | davidovski <david@davidovski.xyz> | 2022-06-15 20:02:02 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-15 20:02:02 +0100 |
commit | d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch) | |
tree | 684a17eebf446aa1adab1097616f1882c8d51568 /repo/qtchooser | |
parent | d1fc3393cca72e8e432f827f7624e38734fad6dc (diff) |
added deps for qemu
Diffstat (limited to 'repo/qtchooser')
-rw-r--r-- | repo/qtchooser/qt5.conf | 2 | ||||
-rw-r--r-- | repo/qtchooser/qt6.conf | 2 | ||||
-rw-r--r-- | repo/qtchooser/qtchooser.xibuild | 37 |
3 files changed, 41 insertions, 0 deletions
diff --git a/repo/qtchooser/qt5.conf b/repo/qtchooser/qt5.conf new file mode 100644 index 0000000..edaadeb --- /dev/null +++ b/repo/qtchooser/qt5.conf @@ -0,0 +1,2 @@ +/usr/lib/qt5/bin +/usr/lib diff --git a/repo/qtchooser/qt6.conf b/repo/qtchooser/qt6.conf new file mode 100644 index 0000000..e75ca15 --- /dev/null +++ b/repo/qtchooser/qt6.conf @@ -0,0 +1,2 @@ +/usr/lib/qt6/bin +/usr/lib diff --git a/repo/qtchooser/qtchooser.xibuild b/repo/qtchooser/qtchooser.xibuild new file mode 100644 index 0000000..b2c9a98 --- /dev/null +++ b/repo/qtchooser/qtchooser.xibuild @@ -0,0 +1,37 @@ +#!/bin/sh + +NAME="qtchooser" +DESC="Wrap the other Qt tools by searching for different instances of Qt on the system" + +MAKEDEPS="" + +PKG_VER=66 +SOURCE="https://download.qt.io/official_releases/qtchooser/qtchooser-$PKG_VER.tar.xz" + +ADDITIONAL=" +qt5.conf +qt6.conf +" + +prepare () { + sed -i "s/install -m 644 -p/install -m 644/g" Makefile + sed -i "s/install -m 755 -p/install -m 755/g" src/qtchooser/Makefile +} + +build() { + bindir=/usr/lib/qtchooser/ make +} + +package() { + INSTALL_ROOT="$PKG_DEST" make install + + install -d "$PKG_DEST"/etc/xdg/qtchooser + install -m644 "$BUILD_ROOT"/qt5.conf \ + "$PKG_DEST"/etc/xdg/qtchooser/ + install -m644 "$BUILD_ROOT"/qt6.conf \ + "$PKG_DEST"/etc/xdg/qtchooser/ + + # Set the default Qt + ln -s /etc/xdg/qtchooser/qt5.conf \ + "$PKG_DEST"/etc/xdg/qtchooser/default.conf +} |