diff --git a/common/shlibs b/common/shlibs index dcb3e7f268..b000a7ce56 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1795,3 +1795,41 @@ libcmis-c-0.4.so.4 libcmis-0.4.1_1 libicutu.so.49 icu-49-libs-49.1.2_1 libicuuc.so.49 icu-49-libs-49.1.2_1 libicui18n.so.49 icu-49-libs-49.1.2_1 +libQt5Core.so.5 qt5-5.3.2_1 +libQt5Xml.so.5 qt5-5.3.2_1 +libQt5DBus.so.5 qt5-5.3.2_1 +libQt5Sql.so.5 qt5-5.3.2_1 +libQt5Test.so.5 qt5-5.3.2_1 +libQt5Network.so.5 qt5-5.3.2_1 +libQt5Gui.so.5 qt5-5.3.2_1 +libQt5Widgets.so.5 qt5-5.3.2_1 +libQt5OpenGL.so.5 qt5-5.3.2_1 +libQt5Concurrent.so.5 qt5-5.3.2_1 +libQt5PrintSupport.so.5 qt5-5.3.2_1 +libQt5Qml.so.5 qt5-declarative-5.3.2_1 +libQt5Quick.so.5 qt5-declarative-5.3.2_1 +libQt5QuickWidgets.so.5 qt5-declarative-5.3.2_1 +libQt5XmlPatterns.so.5 qt5-xmlpatterns-5.3.2_1 +libQt5Script.so.5 qt5-script-5.3.2_1 +libQt5WebKitWidgets.so.5 qt5-webkit-5.3.2_1 +libQt5WebKit.so.5 qt5-webkit-5.3.2_1 +libQt5Sensors.so.5 qt5-sensors-5.3.2_1 +libQt5Positioning.so.5 qt5-location-5.3.2_1 +libQt5Bluetooth.so.5 qt5-connectivity-5.3.2_1 +libQt5Nfc.so.5 qt5-connectivity-5.3.2_1 +libQt5QuickParticles.so.5 qt5-declarative-5.3.2_1 +libQt5QuickTest.so.5 qt5-declarative-5.3.2_1 +libEnginio.so.1 qt5-enginio-5.3.2_1 +libQt5MultimediaQuick_p.so.5 qt5-multimedia-5.3.2_1 +libQt5MultimediaWidgets.so.5 qt5-multimedia-5.3.2_1 +libQt5Multimedia.so.5 qt5-multimedia-5.3.2_1 +libQt5Declarative.so.5 qt5-quick1-5.3.2_1 +libQt5ScriptTools.so.5 qt5-script-5.3.2_1 +libQt5SerialPort.so.5 qt5-serialport-5.3.2_1 +libQt5Svg.so.5 qt5-svg-5.3.2_1 +libQt5Designer.so.5 qt5-tools-5.3.2_1 +libQt5CLucene.so.5 qt5-tools-5.3.2_1 +libQt5DesignerComponents.so.5 qt5-tools-5.3.2_1 +libQt5Help.so.5 qt5-tools-5.3.2_1 +libQt5WebSockets.so.5 qt5-websockets-5.3.2_1 +libQt5X11Extras.so.5 qt5-x11extras-5.3.2_1 diff --git a/srcpkgs/qt5-connectivity b/srcpkgs/qt5-connectivity new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-connectivity @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-connectivity-devel b/srcpkgs/qt5-connectivity-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-connectivity-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-declarative b/srcpkgs/qt5-declarative new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-declarative @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-declarative-devel b/srcpkgs/qt5-declarative-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-declarative-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-devel b/srcpkgs/qt5-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-enginio b/srcpkgs/qt5-enginio new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-enginio @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-enginio-devel b/srcpkgs/qt5-enginio-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-enginio-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-graphicaleffects b/srcpkgs/qt5-graphicaleffects new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-graphicaleffects @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-imageformats b/srcpkgs/qt5-imageformats new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-imageformats @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-location b/srcpkgs/qt5-location new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-location @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-location-devel b/srcpkgs/qt5-location-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-location-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-multimedia b/srcpkgs/qt5-multimedia new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-multimedia @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-multimedia-devel b/srcpkgs/qt5-multimedia-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-multimedia-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-plugin-gtk b/srcpkgs/qt5-plugin-gtk new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-plugin-gtk @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-plugin-mysql b/srcpkgs/qt5-plugin-mysql new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-plugin-mysql @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-plugin-odbc b/srcpkgs/qt5-plugin-odbc new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-plugin-odbc @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-plugin-pgsql b/srcpkgs/qt5-plugin-pgsql new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-plugin-pgsql @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-plugin-sqlite b/srcpkgs/qt5-plugin-sqlite new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-plugin-sqlite @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-qmake b/srcpkgs/qt5-qmake new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-qmake @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-quick1 b/srcpkgs/qt5-quick1 new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-quick1 @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-quick1-devel b/srcpkgs/qt5-quick1-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-quick1-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-quickcontrols b/srcpkgs/qt5-quickcontrols new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-quickcontrols @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-script b/srcpkgs/qt5-script new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-script @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-script-devel b/srcpkgs/qt5-script-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-script-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-sensors b/srcpkgs/qt5-sensors new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-sensors @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-sensors-devel b/srcpkgs/qt5-sensors-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-sensors-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-serialport b/srcpkgs/qt5-serialport new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-serialport @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-serialport-devel b/srcpkgs/qt5-serialport-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-serialport-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-svg b/srcpkgs/qt5-svg new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-svg @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-svg-devel b/srcpkgs/qt5-svg-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-svg-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-tools b/srcpkgs/qt5-tools new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-tools @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-tools-devel b/srcpkgs/qt5-tools-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-tools-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-translations b/srcpkgs/qt5-translations new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-translations @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-webkit b/srcpkgs/qt5-webkit new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-webkit @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-webkit-devel b/srcpkgs/qt5-webkit-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-webkit-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-websockets b/srcpkgs/qt5-websockets new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-websockets @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-websockets-devel b/srcpkgs/qt5-websockets-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-websockets-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-x11extras b/srcpkgs/qt5-x11extras new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-x11extras @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-x11extras-devel b/srcpkgs/qt5-x11extras-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-x11extras-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-xmlpatterns b/srcpkgs/qt5-xmlpatterns new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-xmlpatterns @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5-xmlpatterns-devel b/srcpkgs/qt5-xmlpatterns-devel new file mode 120000 index 0000000000..75793eb666 --- /dev/null +++ b/srcpkgs/qt5-xmlpatterns-devel @@ -0,0 +1 @@ +qt5 \ No newline at end of file diff --git a/srcpkgs/qt5/files/qt5-assistant.desktop b/srcpkgs/qt5/files/qt5-assistant.desktop new file mode 100644 index 0000000000..714c8bde1a --- /dev/null +++ b/srcpkgs/qt5/files/qt5-assistant.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Qt5 Assistant +Comment=Shows Qt5 documentation and examples +Exec=/usr/bin/qt5-assistant +Icon=qt5-assistant +Terminal=false +Type=Application +Categories=Qt;Development;Documentation; diff --git a/srcpkgs/qt5/files/qt5-designer.desktop b/srcpkgs/qt5/files/qt5-designer.desktop new file mode 100644 index 0000000000..5cea8bbd92 --- /dev/null +++ b/srcpkgs/qt5/files/qt5-designer.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Qt5 Designer +GenericName=Interface Designer +Comment=Design GUIs for Qt5 applications +Exec=/usr/bin/qt5-designer +Icon=qt5-designer +MimeType=application/x-designer; +Terminal=false +Type=Application +Categories=Qt;Development; diff --git a/srcpkgs/qt5/files/qt5-linguist.desktop b/srcpkgs/qt5/files/qt5-linguist.desktop new file mode 100644 index 0000000000..3600c8869c --- /dev/null +++ b/srcpkgs/qt5/files/qt5-linguist.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Qt5 Linguist +Comment=Add translations to Qt5 applications +Exec=/usr/bin/qt5-linguist +Icon=qt5-linguist +MimeType=text/vnd.trolltech.linguist;application/x-linguist; +Terminal=false +Type=Application +Categories=Qt;Development; diff --git a/srcpkgs/qt5/files/qt5-qdbusviewer.desktop b/srcpkgs/qt5/files/qt5-qdbusviewer.desktop new file mode 100644 index 0000000000..98ee324bac --- /dev/null +++ b/srcpkgs/qt5/files/qt5-qdbusviewer.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Qt5 QDbusViewer +GenericName=D-Bus Debugger +Comment=Debug D-Bus applications +Exec=/usr/bin/qt5-qdbusviewer +Icon=qt5-qdbusviewer +Terminal=false +Type=Application +Categories=Qt;Development;Debugger; diff --git a/srcpkgs/qt5/template b/srcpkgs/qt5/template new file mode 100644 index 0000000000..c7a781cd2a --- /dev/null +++ b/srcpkgs/qt5/template @@ -0,0 +1,524 @@ +# Template file for 'qt5' +pkgname=qt5 +version=5.3.2 +revision=1 +wrksrc="qt-everywhere-opensource-src-${version}" +homepage="http://qt-project.com/" +short_desc="A cross-platform application and UI framework (QT5)" +maintainer="Juan RP " +license="GPL-3, LGPL-2.1" +distfiles="http://download.qt-project.org/official_releases/qt/${version%.*}/${version}/single/qt-everywhere-opensource-src-${version}.tar.xz" +checksum=7f5bf93344cb57bac374ea4a32c8eda87f1357f998f14278e717cf84d0289bf0 + +nocross=yes +hostmakedepends="flex ruby gperf python perl pkg-config" +makedepends=" + libressl-devel libpng-devel>=1.6 MesaLib-devel libXrender-devel unixodbc-devel + fontconfig-devel libXi-devel libXv-devel libXinerama-devel libXrandr-devel + libXcursor-devel dbus-devel glib-devel icu-devel cups-devel libjpeg-turbo-devel + sqlite-devel alsa-lib-devel tiff-devel libmng-devel libxshmfence-devel + xcb-util-keysyms-devel xcb-util-image-devel xcb-util-wm-devel libSM-devel + libXcomposite-devel libwebp-devel libxkbcommon-devel harfbuzz-devel gtk+-devel + mtdev-devel libmysqlclient-devel postgresql-libs-devel pulseaudio-devel + gst-plugins-base1-devel libxslt-devel" + +pre_configure() { + sed -i "s|-O2|${CXXFLAGS}|" qtbase/mkspecs/common/{g++,gcc}-base.conf + sed -i "/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g" qtbase/mkspecs/common/gcc-base-unix.conf + sed -i "/^QMAKE_LFLAGS\s/s|+=|+= ${LDFLAGS}|g" qtbase/mkspecs/common/gcc-base.conf +} +do_configure() { + export LD_LIBRARY_PATH="${wrksrc}/qtbase/lib:${wrksrc}/qttools/lib:${LD_LIBRARY_PATH}" + export LD="$CXX" + + ./configure -confirm-license -opensource \ + -prefix /usr -sysconfdir /etc/xdg -plugindir /usr/lib/qt5/plugins \ + -docdir /usr/share/doc/qt5 -importdir /usr/lib/qt5/imports \ + -translationdir /usr/share/qt5/translations \ + -datadir /usr/share/qt5 -headerdir /usr/include/qt5 \ + -archdatadir /usr/lib/qt5 -nomake examples \ + -accessibility -fontconfig -icu -openssl-linked -no-pch -no-strip \ + -system-libjpeg -system-libpng -system-sqlite -system-zlib \ + -system-harfbuzz -dbus-linked -optimized-qmake -reduce-relocations +} +do_build() { + export LD_LIBRARY_PATH="${wrksrc}/qtbase/lib:${wrksrc}/qttools/lib:${LD_LIBRARY_PATH}" + export LD="$CXX" + make ${makejobs} +} +do_install() { + # base + cd qtbase + make INSTALL_ROOT=${DESTDIR} install + vlicense LGPL_EXCEPTION.txt + rm -r ${DESTDIR}/usr/share/doc + # rename bins + cd ${DESTDIR}/usr/bin + for f in *; do + mv ${f} qt5-${f} + done +} + +qt5-connectivity-devel_package() { + short_desc+=" - connectivity component (development)" + depends="qt5-connectivity-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtconnectivity + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/lib/qt5/qml + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-connectivity_package() { + short_desc+=" - connectivity component" + pkg_install() { + cd ${wrksrc}/qtconnectivity + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + } +} +qt5-declarative-devel_package() { + short_desc+=" - declarative component (development)" + depends="qt5-declarative-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtdeclarative + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/bin + rm -r ${PKGDESTDIR}/usr/lib/qt5/qml + rm -r ${PKGDESTDIR}/usr/lib/qt5/plugins + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-declarative_package() { + short_desc+=" - declarative component" + pkg_install() { + cd ${wrksrc}/qtdeclarative + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.a + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + } +} +qt5-enginio-devel_package() { + short_desc+=" - enginio component (development)" + depends="qt5-enginio-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtenginio + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/lib/qt5/qml + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-enginio_package() { + short_desc+=" - enginio component" + pkg_install() { + cd ${wrksrc}/qtenginio + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + } +} +qt5-graphicaleffects_package() { + short_desc+=" - graphicaleffects component" + pkg_install() { + cd ${wrksrc}/qtgraphicaleffects + make INSTALL_ROOT=${PKGDESTDIR} install + } +} +qt5-imageformats_package() { + short_desc+=" - Plugins for additional image formats" + pkg_install() { + cd ${wrksrc}/qtimageformats + make INSTALL_ROOT=${PKGDESTDIR} install + } +} +qt5-location-devel_package() { + short_desc+=" - location component (development)" + depends="qt5-location-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtlocation + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/lib/qt5/qml + rm -r ${PKGDESTDIR}/usr/lib/qt5/plugins + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-location_package() { + short_desc+=" - location component" + pkg_install() { + cd ${wrksrc}/qtlocation + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + } +} +qt5-multimedia-devel_package() { + short_desc+=" - multimedia component (development)" + depends="qt5-multimedia-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtmultimedia + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/lib/qt5/qml + rm -r ${PKGDESTDIR}/usr/lib/qt5/plugins + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-multimedia_package() { + short_desc+=" - multimedia component" + pkg_install() { + cd ${wrksrc}/qtmultimedia + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + } +} +qt5-quick1-devel_package() { + short_desc+=" - Qt Quick 1 (development)" + depends="qt5-quick1-${version}_${revision} + qt5-xmlpatterns-devel-${version}_${revision} + qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtquick1 + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/bin + rm -r ${PKGDESTDIR}/usr/lib/qt5/plugins + rm -r ${PKGDESTDIR}/usr/lib/qt5/imports + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-quick1_package() { + short_desc+=" - Qt Quick 1" + pkg_install() { + cd ${wrksrc}/qtquick1 + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + } +} +qt5-quickcontrols_package() { + short_desc+=" - Quick UI controls" + pkg_install() { + cd ${wrksrc}/qtquickcontrols + make INSTALL_ROOT=${PKGDESTDIR} install + } +} +qt5-script-devel_package() { + short_desc+=" - Scriptable classes (development)" + depends="qt5-script-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtscript + make INSTALL_ROOT=${PKGDESTDIR} install + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-script_package() { + short_desc+=" - Scriptable classes" + pkg_install() { + cd ${wrksrc}/qtscript + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + } +} +qt5-sensors-devel_package() { + short_desc+=" - sensors component (development)" + depends="qt5-sensors-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtsensors + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/lib/qt5/qml + rm -r ${PKGDESTDIR}/usr/lib/qt5/plugins + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-sensors_package() { + short_desc+=" - sensors component" + pkg_install() { + cd ${wrksrc}/qtsensors + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + } +} +qt5-serialport-devel_package() { + short_desc+=" - serialport component (development)" + depends="qt5-serialport-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtserialport + make INSTALL_ROOT=${PKGDESTDIR} install + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-serialport_package() { + short_desc+=" - serialport component" + pkg_install() { + cd ${wrksrc}/qtserialport + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + } +} +qt5-svg-devel_package() { + short_desc+=" - svg component (development)" + depends="qt5-svg-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtsvg + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/lib/qt5/plugins + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-svg_package() { + short_desc+=" - svg component" + pkg_install() { + cd ${wrksrc}/qtsvg + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + } +} +qt5-webkit-devel_package() { + short_desc+=" - WebKit2 component (development)" + depends="qt5-webkit-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtwebkit + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/lib/qt5/qml + rm -r ${PKGDESTDIR}/usr/lib/qt5/libexec + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-webkit_package() { + short_desc+=" - WebKit2 component" + pkg_install() { + cd ${wrksrc}/qtwebkit + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + } +} +qt5-websockets-devel_package() { + short_desc+=" - websockets component (development)" + depends="qt5-websockets-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtwebsockets + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/lib/qt5/qml + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-websockets_package() { + short_desc+=" - websockets component" + pkg_install() { + cd ${wrksrc}/qtwebsockets + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + } +} +qt5-x11extras-devel_package() { + short_desc+=" - X11 extras (development)" + depends="qt5-x11extras-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtx11extras + make INSTALL_ROOT=${PKGDESTDIR} install + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-x11extras_package() { + short_desc+=" - X11 extras" + pkg_install() { + cd ${wrksrc}/qtx11extras + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + } +} +qt5-xmlpatterns-devel_package() { + short_desc+=" - XML components (development)" + depends="qt5-xmlpatterns-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qtxmlpatterns + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/bin + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-xmlpatterns_package() { + short_desc+=" - XML components" + pkg_install() { + cd ${wrksrc}/qtxmlpatterns + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + # rename bins + cd ${PKGDESTDIR}/usr/bin + for f in *; do + mv ${f} qt5-${f} + done + } +} +qt5-translations_package() { + short_desc+=" - Translations" + pkg_install() { + cd ${wrksrc}/qttranslations + make INSTALL_ROOT=${PKGDESTDIR} install + } +} +qt5-tools-devel_package() { + short_desc+=" - development tools (development)" + depends="qt5-tools-devel-${version}_${revision} qt5-devel-${version}_${revision}" + pkg_install() { + cd ${wrksrc}/qttools + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/bin + rm -r ${PKGDESTDIR}/usr/share + rm -r ${PKGDESTDIR}/usr/lib/qt5/plugins + rm ${PKGDESTDIR}/usr/lib/*.so.* + } +} +qt5-tools_package() { + short_desc+=" - development tools" + depends="qt5-translations desktop-file-utils hicolor-icon-theme" + pkg_install() { + cd ${wrksrc}/qttools + make INSTALL_ROOT=${PKGDESTDIR} install + rm -r ${PKGDESTDIR}/usr/include + rm -r ${PKGDESTDIR}/usr/lib/cmake + rm -r ${PKGDESTDIR}/usr/lib/pkgconfig + rm -r ${PKGDESTDIR}/usr/lib/qt5/mkspecs + rm ${PKGDESTDIR}/usr/lib/*.so + rm ${PKGDESTDIR}/usr/lib/*.prl + # install missing icons and desktop files + for icon in src/linguist/linguist/images/icons/linguist-*-32.png ; do + size=$(echo $(basename ${icon}) | cut -d- -f2) + install -p -D -m644 ${icon} \ + ${PKGDESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps/qt5-linguist.png + done + install -Dm644 src/assistant/assistant/images/assistant.png \ + ${PKGDESTDIR}/usr/share/icons/hicolor/32x32/apps/qt5-assistant.png + install -Dm644 src/assistant/assistant/images/assistant-128.png \ + ${PKGDESTDIR}/usr/share/icons/hicolor/128x128/apps/qt5-assistant.png + install -Dm644 src/designer/src/designer/images/designer.png \ + ${PKGDESTDIR}/usr/share/icons/hicolor/128x128/apps/qt5-designer.png + install -Dm644 src/qdbus/qdbusviewer/images/qdbusviewer.png \ + ${PKGDESTDIR}/usr/share/icons/hicolor/32x32/apps/qt5-qdbusviewer.png + install -Dm644 src/qdbus/qdbusviewer/images/qdbusviewer-128.png \ + ${PKGDESTDIR}/usr/share/icons/hicolor/128x128/apps/qt5-qdbusviewer.png + # install desktop files + vmkdir usr/share/applications + install -m644 ${FILESDIR}/*.desktop ${PKGDESTDIR}/usr/share/applications + # rename bins + cd ${PKGDESTDIR}/usr/bin + for f in *; do + mv ${f} qt5-${f} + done + } +} +qt5-devel_package() { + depends="zlib-devel libressl-devel libXext-devel libXrender-devel + fontconfig-devel glib-devel MesaLib-devel mtdev-devel + dbus-devel icu-devel qt5-${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.prl" + vmove usr/lib/pkgconfig + vmove usr/lib/cmake + } +} +qt5-plugin-gtk_package() { + short_desc+=" - GTK+ theme plugin" + pkg_install() { + vmove usr/lib/qt5/plugins/platformthemes/libqgtk2.so + } +} +qt5-plugin-odbc_package() { + short_desc+=" - ODBC plugin" + pkg_install() { + vmove usr/lib/qt5/plugins/sqldrivers/libqsqlodbc.so + } +} +qt5-plugin-pgsql_package() { + short_desc+=" - PostgreSQL plugin" + pkg_install() { + vmove usr/lib/qt5/plugins/sqldrivers/libqsqlpsql.so + } +} +qt5-plugin-mysql_package() { + short_desc+=" - MySQL plugin" + pkg_install() { + vmove usr/lib/qt5/plugins/sqldrivers/libqsqlmysql.so + } +} +qt5-plugin-sqlite_package() { + short_desc+=" - SQLite plugin" + pkg_install() { + vmove usr/lib/qt5/plugins/sqldrivers/libqsqlite.so + } +} +qt5-qmake_package() { + short_desc+=" - qmake Makefile generator tool" + pkg_install() { + vmove usr/bin/qt5-qmake + vmove usr/lib/qt5/mkspecs + } +}