summaryrefslogtreecommitdiff
path: root/user/qt5-qttools
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-09 20:08:28 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-09 20:08:28 -0500
commit5ee671102dac22dfc3dbf3fd84e0c0d9f8adb367 (patch)
tree2c00008f58b2174403ee65804c1c21ea9ecac030 /user/qt5-qttools
parentf1fc0e6ecae7dc68c91361f3836b8e03b8cd169c (diff)
downloadpackages-5ee671102dac22dfc3dbf3fd84e0c0d9f8adb367.tar.gz
packages-5ee671102dac22dfc3dbf3fd84e0c0d9f8adb367.tar.bz2
packages-5ee671102dac22dfc3dbf3fd84e0c0d9f8adb367.tar.xz
packages-5ee671102dac22dfc3dbf3fd84e0c0d9f8adb367.zip
user/qt5-qttools: new package
Diffstat (limited to 'user/qt5-qttools')
-rw-r--r--user/qt5-qttools/APKBUILD126
-rw-r--r--user/qt5-qttools/assistant-qt5.desktop8
-rw-r--r--user/qt5-qttools/designer-qt5.desktop9
-rw-r--r--user/qt5-qttools/linguist-qt5.desktop9
-rw-r--r--user/qt5-qttools/qdbusviewer-qt5.desktop10
5 files changed, 162 insertions, 0 deletions
diff --git a/user/qt5-qttools/APKBUILD b/user/qt5-qttools/APKBUILD
new file mode 100644
index 000000000..7143e3406
--- /dev/null
+++ b/user/qt5-qttools/APKBUILD
@@ -0,0 +1,126 @@
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=qt5-qttools
+_pkgname=qttools-opensource-src
+pkgver=5.9.6
+pkgrel=0
+pkgdesc="Qt 5 - Tools for Qt development"
+url="https://qt.io/"
+arch="all"
+options="!check" # Tests require KDE 4 with special window manager config
+license="LGPLv2 with exceptions OR GPLv3 with exceptions"
+depends=""
+makedepends="qt5-qtbase-dev"
+install=""
+subpackages="$pkgname-dev qt5-assistant:_assistant qt5-qdbusviewer:_dbusviewer
+ qdbus qtpaths"
+source="https://download.qt.io/official_releases/qt/${pkgver%.*}/$pkgver/submodules/$_pkgname-$pkgver.tar.xz
+ assistant-qt5.desktop
+ designer-qt5.desktop
+ linguist-qt5.desktop
+ qdbusviewer-qt5.desktop
+ "
+
+_qt5_prefix=/usr/lib/qt5
+builddir="$srcdir"/$_pkgname-$pkgver
+
+build() {
+ cd "$builddir"
+ qmake
+ make
+}
+
+package() {
+ cd "$builddir"
+ make install INSTALL_ROOT="$pkgdir"
+
+ mkdir -p "$pkgdir"/usr/bin/
+ for i in "$pkgdir"/$_qt5_prefix/bin/*; do
+ ln -s ../lib/qt5/bin/${i##*/} "$pkgdir"/usr/bin/${i##*/}-qt5
+ ln -s ../lib/qt5/bin/${i##*/} "$pkgdir"/usr/bin/${i##*/}
+ done
+
+ for i in $source; do
+ case $i in
+ *.desktop) install -Dm644 "$srcdir"/$i \
+ "$pkgdir"/usr/share/applications/$i;;
+ esac
+ done
+ # icons
+ install -m644 -p -D src/assistant/assistant/images/assistant.png \
+ "$pkgdir"/usr/share/icons/hicolor/32x32/apps/assistant-qt5.png
+ install -m644 -p -D src/assistant/assistant/images/assistant-128.png \
+ "$pkgdir"/usr/share/icons/hicolor/128x128/apps/assistant-qt5.png
+ install -m644 -p -D src/designer/src/designer/images/designer.png \
+ "$pkgdir"/usr/share/icons/hicolor/32x32/apps/designer-qt5.png
+ install -m644 -p -D src/qdbus/qdbusviewer/images/qdbusviewer.png \
+ "$pkgdir"/usr/share/icons/hicolor/32x32/apps/qdbusviewer-qt5.png
+ install -m644 -p -D src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
+ "$pkgdir"/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} \
+ "$pkgdir"/usr/share/icons/hicolor/${size}x${size}/apps/linguist.png
+ done
+}
+
+_mv_files() {
+ local i
+ for i in "$@"; do
+ mkdir -p "$subpkgdir"/${i%/*}
+ mv "$pkgdir"/$i "$subpkgdir"/$i
+ done
+}
+
+qdbus() {
+ pkgdesc="Qt 5 D-Bus tool"
+ depends="dbus-x11"
+ cd "$pkgdir"
+ _mv_files $_qt5_prefix/bin/qdbus usr/bin/qdbus-qt5 usr/bin/qdbus
+}
+
+qtpaths() {
+ pkgdesc="Qt 5 path determination tool"
+ cd "$pkgdir"
+ _mv_files $_qt5_prefix/bin/qtpaths usr/bin/qtpaths-qt5 usr/bin/qtpaths
+}
+
+dev() {
+ pkgdesc="More Qt 5 development utilities (Qt Designer, Qt Linguist)"
+ default_dev
+ cd "$pkgdir"
+ for i in designer lconvert linguist lrelease lupdate pixeltool \
+ qcollectiongenerator qhelpconverter qhelpgenerator; do
+
+ _mv_files $_qt5_prefix/bin/$i usr/bin/$i-qt5 usr/bin/$i
+ done
+ _mv_files \
+ usr/share/applications/designer* \
+ usr/share/applications/linguist* \
+ usr/share/icons/hicolor/*/apps/designer* \
+ usr/share/icons/hicolor/*/apps/linguist*
+}
+
+_assistant() {
+ pkgdesc="Documentation browser for Qt 5"
+ cd "$pkgdir"
+ _mv_files usr/bin/assist* \
+ $_qt5_prefix/bin/assist* \
+ usr/share/applications/*assistant* \
+ usr/share/icons/hicolor/*/apps/assistant*
+}
+
+_dbusviewer() {
+ pkgdesc="Qt 5 D-Bus debugger and viewer"
+ cd "$pkgdir"
+ _mv_files usr/bin/qdbusviewer* \
+ $_qt5_prefix/bin/qdbusviewer* \
+ usr/share/applications/qdbusviewer* \
+ usr/share/icons/hicolor/*/apps/qdbusviewer*
+}
+
+sha512sums="2e72e88a6691491ff24b791254f2bb1e98bfc22b01a3ae3d5b8312ca75d4dea983e7949a1d445d9fd9b18c86ba9236489ba59e5562c6db60ec43dbd452b6b8d8 qttools-opensource-src-5.9.6.tar.xz
+d566c5284854855541df7177b23f491d96f5064b571e899a44f1d4fcf8bbf1223590b05b1954278dc6f3f56341c917f5b846594c5bd2215b6a859224038d8ad2 assistant-qt5.desktop
+72d9a2235a60c4ae05ba8395d473fe0b42c12e584da619dadb112eb67ba33a85fe0dab6c185d98112d7b25d3eeacaf02f7ef4731742e50c17eacc54c383661b3 designer-qt5.desktop
+b6d8a672d19eed39ab868ff6fc880f255da94acb9e1e84f5905c0f3b9b6055547e8a706492973692c06dc23d35ce77622fc13efc11adf21b62c3baf4ef5ab2ad linguist-qt5.desktop
+dddcc8c945dcbaf834e8aa8f42fd6df8d6e257e673a256cfd4affed7caf119502dffe6864262d353e8c2e234296cd091279f120ab9502f1b323e20ae3c3dc709 qdbusviewer-qt5.desktop"
diff --git a/user/qt5-qttools/assistant-qt5.desktop b/user/qt5-qttools/assistant-qt5.desktop
new file mode 100644
index 000000000..05b6ef127
--- /dev/null
+++ b/user/qt5-qttools/assistant-qt5.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Exec=/usr/lib/qt5/bin/assistant
+Name=Qt Assistant
+GenericName=Qt Document Browser
+Icon=assistant
+Terminal=false
+Type=Application
+Categories=Qt;Development;Documentation
diff --git a/user/qt5-qttools/designer-qt5.desktop b/user/qt5-qttools/designer-qt5.desktop
new file mode 100644
index 000000000..b867254d5
--- /dev/null
+++ b/user/qt5-qttools/designer-qt5.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Exec=/usr/lib/qt5/bin/designer
+Name=Qt Designer
+GenericName=Interface Designer
+MimeType=application/x-designer
+Icon=designer
+Terminal=false
+Type=Application
+Categories=Qt;Development;GUIDesigner
diff --git a/user/qt5-qttools/linguist-qt5.desktop b/user/qt5-qttools/linguist-qt5.desktop
new file mode 100644
index 000000000..0d4bb453e
--- /dev/null
+++ b/user/qt5-qttools/linguist-qt5.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Exec=/usr/lib/qt5/bin/linguist
+Name=Qt Linguist
+GenericName=Translation Tool
+MimeType=application/x-linguist
+Terminal=false
+Type=Application
+Icon=linguist
+Categories=Qt;Development;Translation
diff --git a/user/qt5-qttools/qdbusviewer-qt5.desktop b/user/qt5-qttools/qdbusviewer-qt5.desktop
new file mode 100644
index 000000000..c5abc7078
--- /dev/null
+++ b/user/qt5-qttools/qdbusviewer-qt5.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Qt5 QDbusViewer
+GenericName=D-Bus Debugger
+Comment=Debug D-Bus applications
+Exec=/usr/lib/qt5/bin/qdbusviewer
+Icon=qt5-qdbusviewer
+Terminal=false
+Type=Application
+Categories=Qt;Development;Debugger;
+