diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-09 18:10:14 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-09 18:14:15 +0000 |
commit | 8446f9fbd508c952c1a6b930384463e00f82654f (patch) | |
tree | 47f1a406e259b3925ee50cb92f4e6d0d2ba09b8b /testing | |
parent | 4bbe41b189777a450986518d8ff94a1dc74707a6 (diff) | |
download | aports-8446f9fbd508c952c1a6b930384463e00f82654f.tar.bz2 aports-8446f9fbd508c952c1a6b930384463e00f82654f.tar.xz |
testing/qt5-qttools: new aport
Qt5 - QtTool components
http://qt-project.org/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/qt5-qttools/APKBUILD | 138 | ||||
-rw-r--r-- | testing/qt5-qttools/assistant.desktop | 8 | ||||
-rw-r--r-- | testing/qt5-qttools/designer.desktop | 9 | ||||
-rw-r--r-- | testing/qt5-qttools/linguist.desktop | 9 | ||||
-rw-r--r-- | testing/qt5-qttools/qdbusviewer.desktop | 10 |
5 files changed, 174 insertions, 0 deletions
diff --git a/testing/qt5-qttools/APKBUILD b/testing/qt5-qttools/APKBUILD new file mode 100644 index 000000000..bf3fce830 --- /dev/null +++ b/testing/qt5-qttools/APKBUILD @@ -0,0 +1,138 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=qt5-qttools +pkgver=5.1.1 +pkgrel=0 +pkgdesc="Qt5 - QtTool components" +url="http://qt-project.org/" +arch="all" +license="LGPLv2 with exceptions or GPLv3 with exceptions" +depends="" +depends_dev="qt5-qtbase-dev" +makedepends="$depends_dev qt5-qtwebkit-dev" +install="" +subpackages="$pkgname-dev qt5-assistant:_assistant qt5-qdbusviewer:_dbusviewer + qt5-designer-plugin-webkit:_webkit" +source="http://download.qt-project.org/official_releases/qt/5.1/$pkgver/submodules/qttools-opensource-src-$pkgver.tar.xz + assistant.desktop + designer.desktop + linguist.desktop + qdbusviewer.desktop + " + +_builddir="$srcdir"/qttools-opensource-src-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + qmake && make || return 1 +} + +package() { + cd "$_builddir" + make install INSTALL_ROOT="$pkgdir" || return 1 + rm "$pkgdir"/usr/lib/*.la || return 1 + for i in $source; do + case $i in + *.desktop) install -Dm644 "$srcdir"/$i \ + "$pkgdir"/usr/share/applications/$i || return 1;; + esac + done + # icons + install -m644 -p -D src/assistant/assistant/images/assistant.png \ + "$pkgdir"/usr/share/icons/hicolor/32x32/apps/assistant-qt5.png \ + || return 1 + install -m644 -p -D src/assistant/assistant/images/assistant-128.png \ + "$pkgdir"/usr/share/icons/hicolor/128x128/apps/assistant-qt5.png\ + || return 1 + install -m644 -p -D src/designer/src/designer/images/designer.png \ + "$pkgdir"/usr/share/icons/hicolor/32x32/apps/designer-qt5.png \ + || return 1 + install -m644 -p -D src/qdbus/qdbusviewer/images/qdbusviewer.png \ + "$pkgdir"/usr/share/icons/hicolor/32x32/apps/qdbusviewer-qt5.png \ + || return 1 + install -m644 -p -D src/qdbus/qdbusviewer/images/qdbusviewer-128.png \ + "$pkgdir"/usr/share/icons/hicolor/128x128/apps/qdbusviewer-qt5.png \ + || return 1 + # 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 || return 1 + done +} + +_mv_files() { + local i + for i in "$@"; do + mkdir -p "$subpkgdir"/${i%/*} + mv "$pkgdir"/$i "$subpkgdir"/$i || return 1 + done +} + +dev() { + default_dev + cd "$pkgdir" + _mv_files \ + usr/bin/designer \ + usr/bin/lconvert \ + usr/bin/linguist \ + usr/bin/lrelease \ + usr/bin/lupdate \ + usr/bin/pixeltool \ + usr/bin/qcollectiongenerator \ + usr/bin/qhelpconverter \ + usr/bin/qhelpgenerator \ + usr/share/applications/designer* \ + usr/share/applications/linguist* \ + usr/share/icons/hicolor/*/apps/designer* \ + usr/share/icons/hicolor/*/apps/linguist* \ + || return 1 +} + +_assistant() { + pkgdesc="Documentation browser for Qt5" + cd "$pkgdir" + _mv_files usr/bin/assist* \ + usr/share/applications/*assistant* \ + usr/share/icons/hicolor/*/apps/assistant* \ + || return 1 +} + +_dbusviewer() { + pkgdesc="D-Bus debugger and viewer" + cd "$pkgdir" + _mv_files usr/bin/qdbusviewer* \ + usr/share/applications/qdbusviewer* \ + usr/share/icons/hicolor/*/apps/qdbusviewer* \ + || return 1 +} + +_webkit() { + pkgdesc="Qt5 designer plugin for WebKit" + cd "$pkgdir" + _mv_files usr/lib/qt5/plugins/designer/libqwebview.so || return 1 +} + +md5sums="022073d32ff9d408de0182b5d1f01781 qttools-opensource-src-5.1.1.tar.xz +a445c6917086d80f1cfc1e40cb6b0132 assistant.desktop +d457f0a0ad68a3861c3cadefe3b42ded designer.desktop +668331d9798a0e2b94381efb7be4c513 linguist.desktop +60f6c5d2e7551790665d35778d1640f3 qdbusviewer.desktop" +sha256sums="2b42c6d5feeccffb67e890b86a150bae64dd2ff550be39a3cc449ee0e95462b6 qttools-opensource-src-5.1.1.tar.xz +1094300e3d69e55eb69d87cbaac6724f68b0618938c6eb1b0ddd22ba99c7f8a2 assistant.desktop +74c2c5d27a1c1ad08ab01122bcf333f75d0a014b4755d3ddd8764c2425f6e320 designer.desktop +1b9ecd839c1a5dfcec87653849287c31bf2f4044300958be802ebb943e896998 linguist.desktop +3da411f79ddc788a6b892ba1d61c0175c629e6e53fb9591a3cb12e4c6d983ac8 qdbusviewer.desktop" +sha512sums="9fdd3063357fc961c972e50f61e7b9b028e72dfca27830bd0316a02ca7898ce98e4170b4687d511aa12cd1c77aac6ac8900374f6bab28846a484dd9acbed6565 qttools-opensource-src-5.1.1.tar.xz +005ed6fe50b237e4541c0f30cbd87ec5425eff7e7c8d55d2b9b24ea8469e75e1fc8a3f26296841ab4cbd566517b3f1aa1fa7b36e1a9677d284cfff615fd24614 assistant.desktop +731aae6a0d776c1be5a49dadc5480b205ba5c8e056d108e2bb96a19dd52b6c6ca22387b37505cf97a2575228cd5dd65c773d0fde1c26299e47fdc11a49f651fd designer.desktop +70943d9ee9ac7ff6281079be14b741095c60428b30b27bafc42a8bb1729a6f7e8e163cff3d2b5d5a66bbdab464816eea479a3f822598ff2fe068d4025652a049 linguist.desktop +46880915dabb1d0e6bc870460cb86ec1b8f4678bda5c1001903281545e8c33752619cbda25d955436f2facedbc0890ebb1c9e71dfe2bd60f1bebfafe68085cd6 qdbusviewer.desktop" diff --git a/testing/qt5-qttools/assistant.desktop b/testing/qt5-qttools/assistant.desktop new file mode 100644 index 000000000..1b9f0a768 --- /dev/null +++ b/testing/qt5-qttools/assistant.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Exec=/usr/bin/assistant +Name=Qt Assistant +GenericName=Qt Document Browser +Icon=assistant +Terminal=false +Type=Application +Categories=Qt;Development;Documentation diff --git a/testing/qt5-qttools/designer.desktop b/testing/qt5-qttools/designer.desktop new file mode 100644 index 000000000..8f362731b --- /dev/null +++ b/testing/qt5-qttools/designer.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Exec=/usr/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/testing/qt5-qttools/linguist.desktop b/testing/qt5-qttools/linguist.desktop new file mode 100644 index 000000000..94e92c1b0 --- /dev/null +++ b/testing/qt5-qttools/linguist.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Exec=/usr/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/testing/qt5-qttools/qdbusviewer.desktop b/testing/qt5-qttools/qdbusviewer.desktop new file mode 100644 index 000000000..d6e0f0ae0 --- /dev/null +++ b/testing/qt5-qttools/qdbusviewer.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Qt5 QDbusViewer +GenericName=D-Bus Debugger +Comment=Debug D-Bus applications +Exec=qdbusviewer-qt5 +Icon=qt5-qdbusviewer +Terminal=false +Type=Application +Categories=Qt;Development;Debugger; + |