2012-12-14 03:37:36 +08:00
#
2016-02-29 05:59:46 +08:00
# QT Packages for Chakra, part of chakraos.org
2012-12-14 03:37:36 +08:00
#
2016-02-29 05:59:46 +08:00
# maintainer: Fabian Kosmale <inkane@chakraos.org>
# contributor: Luca Giambonini <almack@chakraos.org>
2013-12-23 01:56:11 +08:00
# heavily sto^H^H^H inspired by Andrea Scarpino' PKGBUILD from Arch
2012-12-14 03:37:36 +08:00
pkgbase = qt5
2013-07-31 23:59:42 +08:00
pkgname = ( 'qt5-base'
2016-01-02 12:57:13 +08:00
'qt5-3d'
2015-07-10 20:39:10 +08:00
'qt5-canvas3d'
2016-01-02 12:57:13 +08:00
'qt5-connectivity'
2015-01-13 09:28:12 +08:00
'qt5-declarative'
2013-12-23 01:56:11 +08:00
'qt5-doc'
2013-07-31 23:59:42 +08:00
'qt5-graphicaleffects'
'qt5-imageformats'
2013-12-23 01:56:11 +08:00
'qt5-location'
2013-07-31 23:59:42 +08:00
'qt5-multimedia'
'qt5-quickcontrols'
2016-02-29 05:59:46 +08:00
'qt5-quickcontrols2'
2013-07-31 23:59:42 +08:00
'qt5-sensors'
2016-02-29 05:59:46 +08:00
'qt5-serialbus'
2013-07-31 23:59:42 +08:00
'qt5-serialport'
'qt5-svg'
'qt5-tools'
'qt5-translations'
2015-01-13 09:28:12 +08:00
'qt5-wayland'
'qt5-webchannel'
'qt5-webengine'
2014-06-14 21:37:14 +08:00
'qt5-websockets'
2016-02-29 05:59:46 +08:00
'qt5-webview'
2015-01-07 09:57:16 +08:00
'qt5-x11extras'
2015-01-13 09:28:12 +08:00
'qt5-xmlpatterns' )
2016-03-15 03:01:25 +08:00
pkgver = 5.6.0
subver = 5.6.0
2016-02-29 05:59:46 +08:00
_pkgver = 5.6
2016-03-15 03:01:25 +08:00
pkgrel = 2
2012-12-14 03:37:36 +08:00
arch = ( 'x86_64' )
2014-09-19 05:04:26 +08:00
url = 'http://qt-project.org/'
license = ( 'GPL3' 'LGPL' 'FDL' 'custom' )
2016-03-02 12:28:56 +08:00
makedepends = ( 'libxcb' 'xcb-proto' 'xcb-util' 'xcb-util-image' 'xcb-util-wm' 'xcb-util-keysyms' 'xcb-util-renderutil'
2016-03-03 12:06:22 +08:00
'mesa' 'at-spi2-core' 'alsa-lib' 'icu'
2015-01-13 09:28:12 +08:00
'libjpeg-turbo' 'cups' 'libpulse' 'hicolor-icon-theme' 'desktop-file-utils'
'postgresql-libs' 'libmariadbclient' 'sqlite3' 'unixodbc' 'libmng'
'python2' 'ruby' 'gperf' 'libxslt' 'libxcomposite' 'fontconfig' 'bluez'
2015-07-10 01:37:45 +08:00
'openal' 'libxkbcommon-x11' 'mtdev' 'harfbuzz' 'libwebp' 'leveldb'
2015-01-13 09:28:12 +08:00
'libxcursor' 'libsm' 'libxrandr' 'libxv' 'libxi'
'xdg-utils' 'desktop-file-utils' 'libxinerama' 'libxfixes'
2015-02-27 05:13:54 +08:00
'geoclue' 'pciutils' 'nss'
2015-01-13 09:28:12 +08:00
'gstreamer' 'gst-plugins-base' 'gst-plugins-good'
2016-01-02 12:57:13 +08:00
'gst-plugins-bad' 'gst-plugins-ugly' 'harfbuzz' 'pkg-config'
'libinput' 'yasm' 'git' )
2016-02-29 05:59:46 +08:00
#_pkgfqn="qt-everywhere-opensource-src-${pkgver}"
#source=("http://download.qt-project.org/official_releases/qt/${_pkgver}/${pkgver}/single/$_pkgfqn.tar.xz"
_pkgfqn = " qt-everywhere-opensource-src- ${ subver } "
source = ( " http://download.qt-project.org/development_releases/qt/ ${ _pkgver } / ${ subver } /single/ $_pkgfqn .tar.xz "
2016-01-22 16:08:08 +08:00
'0001-Fix-QWidget-setWindowRole.patch'
'0005-Restore-documented-behavior-for-the-WA_X11NetWmWindo.patch'
2016-03-15 03:01:25 +08:00
'do_not_synchronize_local_messages.patch'
2016-01-22 16:08:08 +08:00
'libqt5-do-not-use-shm-if-display-name-doesnt-look-local.patch'
2016-03-02 10:45:16 +08:00
'highdpi-fix.patch::https://github.com/qtproject/qtbase/commit/cf846d6a8a0df0f0935f7f1306ab8439309cf6e5.patch'
2016-01-22 16:08:08 +08:00
# not yet upstream
'libqt5-Fix-Gujarati-font.patch'
2016-02-29 05:59:46 +08:00
# desktop files
2013-07-31 23:59:42 +08:00
'assistant-qt5.desktop' 'designer-qt5.desktop' 'linguist-qt5.desktop' 'qtconfig-qt5.desktop'
2015-01-13 09:28:12 +08:00
'qmlviewer.desktop'
2014-07-02 13:46:53 +08:00
'qdbusviewer-qt5.desktop' )
2016-03-15 03:01:25 +08:00
sha1sums = ( '253f87623f2e8238623ba9d7f705355ed3da4eee'
2016-02-29 05:59:46 +08:00
'f69e25beeba8682ef8ca9e8cf978061d75173914'
2016-01-22 16:08:08 +08:00
'4dabcdf77de5325eba5890f356157c006b095cc9'
2016-03-15 03:01:25 +08:00
'dbc8a9b6d75553b19b4fa00f785876bea0177794'
2016-01-22 16:08:08 +08:00
'eb1fa717a650e95276bcd9f29b97fdb576c90337'
2016-03-02 10:45:16 +08:00
'f9a66a5df95bcc9c9269050c778d09e5bbec24cf'
2016-01-22 16:08:08 +08:00
'd5dc1de05f00fa9eabce400ef11e7932ed8af550'
2015-05-06 13:42:56 +08:00
'0862a4a39b74d0e447181d7eca31580c9d580bc8'
'b63cab2c86505b594e32b32ae43524090fcb7d29'
'303e0deab3ef3f1ca84856aa2e35b096bcb6b849'
2013-07-31 23:59:42 +08:00
'2e0b6245c40c91fbb0a965724450b6d6883f2927'
'b0e6c61b8364eb3f7af4dae41fa7738c3181dd96'
2015-05-06 13:42:56 +08:00
'1295012599b5335f24b6945bc7ee312093339ec4' )
2013-07-31 23:59:42 +08:00
_prlfix( ) {
# Fix wrong path in prl files
find " ${ pkgdir } /usr/lib " -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' { } \;
}
2012-12-14 03:37:36 +08:00
2013-12-23 01:56:11 +08:00
prepare( ) {
cd ${ _pkgfqn }
2016-01-22 16:08:08 +08:00
pushd .
cd qtbase
2016-02-29 05:59:46 +08:00
2016-01-22 16:08:08 +08:00
patch -Np1 -i ../../0001-Fix-QWidget-setWindowRole.patch
patch -Np1 -i ../../0005-Restore-documented-behavior-for-the-WA_X11NetWmWindo.patch
patch -Np1 -i ../../libqt5-Fix-Gujarati-font.patch
patch -Np1 -i ../../libqt5-do-not-use-shm-if-display-name-doesnt-look-local.patch
2016-03-02 10:45:16 +08:00
patch -Np1 -i ../../highdpi-fix.patch
2016-03-15 03:01:25 +08:00
patch -Np1 -i ../../do_not_synchronize_local_messages.patch
2016-01-22 16:08:08 +08:00
popd
2015-01-13 09:28:12 +08:00
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
2013-12-23 01:56:11 +08:00
sed -i " /^QMAKE_LFLAGS\s/s|+=|+= ${ LDFLAGS } |g " qtbase/mkspecs/common/gcc-base.conf
2015-01-13 09:28:12 +08:00
# Use python2 for Python 2.x
find . -name '*.py' -exec sed -i \
's|#![ ]*/usr/bin/python$|&2|;s|#![ ]*/usr/bin/env python$|&2|' { } +
2015-02-27 05:13:54 +08:00
# in qtwebengine there are still a lot of relative calls which need a workaround
2015-01-13 09:28:12 +08:00
mkdir -p " ${ srcdir } " /python2-path
ln -sf /usr/bin/python2 " ${ srcdir } " /python2-path/python
2016-01-02 12:57:13 +08:00
# Try to enable proprietary_codecs and use some system yasm
sed -e 's/contains(WEBENGINE_CONFIG, proprietary_codecs): //' \
-e '/use_system_ffmpeg=0"/a GYP_ARGS += "-Duse_system_yasm=1"' \
-i qtwebengine/src/core/gyp_run.pro
2013-12-23 01:56:11 +08:00
}
2012-12-14 03:37:36 +08:00
build( ) {
2015-01-13 09:28:12 +08:00
cd $srcdir /$_pkgfqn
export QTDIR = " ${ srcdir } " /${ _pkgfqn }
export LD_LIBRARY_PATH = " ${ QTDIR } " /qtbase/lib:" ${ QTDIR } " /qttools/lib:" ${ LD_LIBRARY_PATH } "
export QT_PLUGIN_PATH = " ${ QTDIR } " /qtbase/plugins
2015-02-27 05:13:54 +08:00
# python2 workaround
2015-01-13 09:28:12 +08:00
export PATH = " ${ srcdir } /python2-path: $PATH "
export _xkbconfigroot = $( pkg-config --variable= xkb_base xkeyboard-config)
PYTHON = /usr/bin/python2 ./configure -confirm-license -opensource \
-prefix /usr \
-bindir /usr/lib/qt5/bin \
-docdir /usr/share/doc/qt5 \
2015-04-16 04:55:12 +08:00
-force-debug-info \
2015-01-13 09:28:12 +08:00
-headerdir /usr/include/qt5 \
-archdatadir /usr/lib/qt5 \
-datadir /usr/share/qt5 \
-sysconfdir /etc/xdg \
-examplesdir /usr/share/qt5/examples \
-plugindir /usr/lib/qt5/plugins \
-importdir /usr/lib/qt5/imports \
-qmldir /usr/lib/qt5/qml \
-testsdir /usr/share/qt5/tests \
-translationdir /usr/share/qt5/translations \
-plugin-sql-{ psql,mysql,sqlite,odbc} \
2016-03-02 12:28:56 +08:00
-system-xcb \
2015-01-13 09:28:12 +08:00
-system-sqlite \
-openssl-linked \
-nomake examples \
-no-rpath \
-optimized-qmake \
-dbus-linked \
-system-harfbuzz \
-journald \
2016-01-02 12:57:13 +08:00
-libinput \
2015-01-13 09:28:12 +08:00
-reduce-relocations \
-no-gtkstyle \
-opengl desktop \
-feature-menu \
-feature-textdate \
-xkb-config-root $_xkbconfigroot \
-system-xkbcommon \
2016-01-24 00:47:55 +08:00
-no-libproxy \
-gstreamer 1.0 \
2015-01-13 09:28:12 +08:00
-feature-ftp \
-xcursor
make
2015-02-27 05:13:54 +08:00
# Fix docs build when qt is not installed
2016-03-02 10:45:16 +08:00
sed -i " s|/usr/lib/qt5/bin/qdoc| ${ QTDIR } /qttools/bin/qdoc|g " \
2015-02-27 05:13:54 +08:00
" ${ QTDIR } " /qtbase/qmake/Makefile.qmake-docs
find " ${ QTDIR } " -name Makefile \
2016-03-02 10:45:16 +08:00
-exec sed -i " s|/usr/lib/qt5/bin/qdoc| ${ QTDIR } /qttools/bin/qdoc|g " { } +
find " ${ QTDIR } " -name qdoc_wrapper.sh \
-exec sed -i " s|/usr/lib/qt5/bin/qdoc| ${ QTDIR } /qttools/bin/qdoc|g " { } +
2015-02-27 05:13:54 +08:00
sed -i " s|/usr/lib/qt5/bin/qhelpgenerator| ${ QTDIR } /qttools/bin/qhelpgenerator|g " \
" ${ QTDIR } " /qtbase/qmake/Makefile.qmake-docs
2016-03-02 10:45:16 +08:00
find " ${ QTDIR } " -name 'Makefile*' \
-exec sed -i " s|/usr/lib/qt5/bin/qhelpgenerator| ${ QTDIR } /qttools/bin/qhelpgenerator|g " { } +
2015-02-27 05:13:54 +08:00
find " ${ QTDIR } " -name Makefile \
-exec sed -i " s|/usr/lib/qt5/bin/qmlplugindump| ${ QTDIR } /qtdeclarative/bin/qmlplugindump|g " { } +
2015-01-13 09:28:12 +08:00
make docs
}
2012-12-14 03:37:36 +08:00
2016-01-02 12:57:13 +08:00
package_qt5-3d( ) {
pkgdesc = 'Provides functionality for near-realtime simulation systems with support for 2D and 3D rendering in both Qt C++ and Qt Quick applications'
depends = ( 'qt5-base' 'qt5-declarative' )
provides = ( " qt5-qt3d= ${ pkgver } " )
options = ( "debug" )
cd ${ _pkgfqn } /qt3d
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
}
2013-07-31 23:59:42 +08:00
package_qt5-base( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'A cross-platform application and UI framework'
depends = ( 'libtiff' 'libpng' 'libmng' 'sqlite3' 'ca-certificates' 'glib2' 'dbus'
'fontconfig' 'libgl' 'libsm' 'libxrandr' 'libxv' 'libxi' 'alsa-lib' 'ruby'
'xdg-utils' 'hicolor-icon-theme' 'desktop-file-utils' 'libxinerama' 'libxcursor'
'pulseaudio' 'gstreamer' 'gst-plugins-base' 'gst-plugins-ugly' 'gst-plugins-good'
'xcb-util-image' 'xcb-util-keysyms'
2016-03-03 12:06:22 +08:00
'xcb-util-renderutil' 'xcb-util-wm' 'libxkbcommon-x11' 'libinput' 'icu' )
2015-01-13 09:28:12 +08:00
optdepends = ( 'postgresql-libs: PostgreSQL driver'
'libmariadbclient: MariaDB driver'
'unixodbc: ODBC driver'
'mtdev: evdev plugin'
'libxfixes: Xfixes support' )
conflicts = ( 'qt5' 'qt5-private-headers' )
replaces = ( 'qt5-private-headers' )
2015-04-13 00:20:58 +08:00
options = ( "staticlibs" "debug" )
2013-12-23 01:56:11 +08:00
2015-02-27 05:13:54 +08:00
cd ${ _pkgfqn } /qtbase
make INSTALL_ROOT = " ${ pkgdir } " install
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
_prlfix
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
# Fix wrong qmake path in pri file
sed -i " s| ${ srcdir } / ${ _pkgfqn } /qtbase|/usr| " \
" ${ pkgdir } " /usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
# create some symlinks in /usr/bin, postfixed with -qt5
mkdir -p ${ pkgdir } /usr/bin
for i in $( ls ${ pkgdir } /usr/lib/qt5/bin) ; do
ln -s /usr/lib/qt5/bin/${ i } ${ pkgdir } /usr/bin/${ i } -qt5
done
2013-07-31 23:59:42 +08:00
}
2015-07-10 20:39:10 +08:00
package_qt5-canvas3d( ) {
pkgdesc = 'Provides a way to make OpenGL-like 3D drawing calls from Qt Quick JavaScript'
depends = ( 'qt5-declarative' 'qt5-base' )
options = ( "debug" )
cd ${ _pkgfqn } /qtcanvas3d
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
}
2013-12-23 01:56:11 +08:00
package_qt5-connectivity( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'Provides access to Bluetooth hardware'
depends = ( 'qt5-declarative' 'bluez' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2013-12-23 01:56:11 +08:00
cd ${ _pkgfqn } /qtconnectivity
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
}
2013-07-31 23:59:42 +08:00
package_qt5-declarative( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'Classes for QML and JavaScript languages'
2015-07-10 01:37:45 +08:00
depends = ( 'qt5-xmlpatterns' 'libxkbcommon-x11' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2015-01-13 09:28:12 +08:00
conflicts = ( 'qt5' )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qtdeclarative
make INSTALL_ROOT = " ${ pkgdir } " install
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
_prlfix
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
# create some symlinks in /usr/bin, postfixed with -qt5
install -d " ${ pkgdir } " /usr/bin
for i in $( ls ${ pkgdir } /usr/lib/qt5/bin) ; do
ln -s /usr/lib/qt5/bin/${ i } ${ pkgdir } /usr/bin/${ i } -qt5
done
2013-07-31 23:59:42 +08:00
}
2013-12-23 01:56:11 +08:00
package_qt5-doc( ) {
pkgdesc = 'A cross-platform application and UI framework (Documentation)'
depends = ( 'qt5-base' )
arch = ( 'any' )
options = ( 'docs' '!emptydirs' )
2013-07-31 23:59:42 +08:00
2013-12-23 01:56:11 +08:00
cd ${ _pkgfqn }
make INSTALL_ROOT = " ${ pkgdir } " install_docs
2013-07-31 23:59:42 +08:00
2013-12-23 01:56:11 +08:00
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
2013-07-31 23:59:42 +08:00
}
2014-06-14 21:37:14 +08:00
package_qt5-enginio( ) {
pkgdesc = 'A Backend-as-a-Service solution to ease the backend development for connected and data-driven application'
depends = ( 'qt5-declarative' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2014-06-14 21:37:14 +08:00
cd ${ _pkgfqn } /qtenginio
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
}
2013-07-31 23:59:42 +08:00
package_qt5-xmlpatterns( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'Support for XPath, XQuery, XSLT and XML schema validation'
depends = ( 'qt5-base' )
conflicts = ( 'qt5' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qtxmlpatterns
make INSTALL_ROOT = " ${ pkgdir } " install
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
_prlfix
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
# create some symlinks in /usr/bin, postfixed with -qt5
install -d " ${ pkgdir } " /usr/bin
for i in $( ls ${ pkgdir } /usr/lib/qt5/bin) ; do
ln -s /usr/lib/qt5/bin/${ i } ${ pkgdir } /usr/bin/${ i } -qt5
done
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
2013-07-31 23:59:42 +08:00
}
package_qt5-translations( ) {
pkgdesc = 'A cross-platform application and UI framework (Translations)'
depends = ( 'qt5-base' )
conflicts = ( 'qt5' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qttranslations
make INSTALL_ROOT = " ${ pkgdir } " install
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
}
2013-07-31 23:59:42 +08:00
package_qt5-multimedia( ) {
pkgdesc = 'A cross-platform application and UI framework (QtMultimedia)'
2014-07-06 04:20:57 +08:00
depends = ( 'qt5-declarative' 'libpulse' 'gstreamer' 'openal' )
2013-07-31 23:59:42 +08:00
conflicts = ( 'qt5' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qtmultimedia
make INSTALL_ROOT = " ${ pkgdir } " install
2013-07-31 23:59:42 +08:00
_prlfix
2012-12-14 03:37:36 +08:00
}
2013-07-31 23:59:42 +08:00
package_qt5-graphicaleffects( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'Graphical effects for use with Qt Quick 2'
2013-07-31 23:59:42 +08:00
depends = ( 'qt5-declarative' )
conflicts = ( 'qt5' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qtgraphicaleffects
make INSTALL_ROOT = " ${ pkgdir } " install
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
2013-07-31 23:59:42 +08:00
}
package_qt5-imageformats( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'Plugins for additional image formats: TIFF, MNG, TGA, WBMP'
depends = ( 'qt5-base' 'jasper' 'libmng' 'libwebp' )
2013-07-31 23:59:42 +08:00
conflicts = ( 'qt5' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qtimageformats
make INSTALL_ROOT = " ${ pkgdir } " install
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
2013-07-31 23:59:42 +08:00
}
2013-12-23 01:56:11 +08:00
package_qt5-location( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'Provides access to position, satellite and area monitoring classes'
depends = ( 'qt5-declarative' 'geoclue' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2013-12-23 01:56:11 +08:00
cd ${ _pkgfqn } /qtlocation
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
}
2016-02-29 05:59:46 +08:00
package_qt5-quickcontrols2( ) {
pkgdesc = 'Provides new light-weight set of embedded and mobile orientation controls (Technology Preview)'
depends = ( 'qt5-declarative' )
conflicts = ( 'qt5' )
options = ( "debug" )
cd ${ _pkgfqn } /qtquickcontrols2
make INSTALL_ROOT = " ${ pkgdir } " install
}
2013-07-31 23:59:42 +08:00
package_qt5-quickcontrols( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'Reusable Qt Quick based UI controls to create classic desktop-style user interfaces'
2013-07-31 23:59:42 +08:00
depends = ( 'qt5-declarative' )
conflicts = ( 'qt5' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qtquickcontrols
2013-07-31 23:59:42 +08:00
make INSTALL_ROOT = " ${ pkgdir } " install
}
package_qt5-script( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'Classes for making Qt applications scriptable. Provided for Qt 4.x compatibility'
2013-07-31 23:59:42 +08:00
depends = ( 'qt5-base' )
conflicts = ( 'qt5' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qtscript
2013-07-31 23:59:42 +08:00
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
2015-01-13 09:28:12 +08:00
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
2013-07-31 23:59:42 +08:00
}
package_qt5-sensors( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'Provides access to sensor hardware and motion gesture recognition'
2013-07-31 23:59:42 +08:00
depends = ( 'qt5-declarative' )
conflicts = ( 'qt5' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qtsensors
2013-07-31 23:59:42 +08:00
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
2015-01-13 09:28:12 +08:00
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
2013-07-31 23:59:42 +08:00
}
2016-02-29 05:59:46 +08:00
package_qt5-serialbus( ) {
pkgdesc = 'Provides classes and functions to access the various industrial serial buses and protocols, such as CAN, ModBus, and others. (Technology Preview)'
depends = ( 'qt5-base' )
conflicts = ( 'qt5' )
options = ( "debug" )
cd ${ _pkgfqn } /qtserialbus
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
}
2013-07-31 23:59:42 +08:00
package_qt5-serialport( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'Provides access to hardware and virtual serial ports'
2013-07-31 23:59:42 +08:00
depends = ( 'qt5-base' )
conflicts = ( 'qt5' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qtserialport
2013-07-31 23:59:42 +08:00
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
2015-01-13 09:28:12 +08:00
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
2013-07-31 23:59:42 +08:00
}
package_qt5-svg( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'Classes for displaying the contents of SVG files'
2013-07-31 23:59:42 +08:00
depends = ( 'qt5-base' )
conflicts = ( 'qt5' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qtsvg
2013-07-31 23:59:42 +08:00
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
2015-01-13 09:28:12 +08:00
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
2013-07-31 23:59:42 +08:00
}
2015-01-13 09:28:12 +08:00
2013-07-31 23:59:42 +08:00
package_qt5-tools( ) {
pkgdesc = 'A cross-platform application and UI framework (Development Tools, QtHelp)'
2016-03-03 12:06:22 +08:00
depends = ( 'qt5-base' 'desktop-file-utils' 'qt5-translations' 'hicolor-icon-theme'
2013-07-31 23:59:42 +08:00
'xdg-utils' )
optdepends = ( 'qt5-doc: documentation' )
conflicts = ( 'qt5' )
2015-04-13 00:20:58 +08:00
options = ( "staticlibs" "debug" )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qttools
2013-07-31 23:59:42 +08:00
make INSTALL_ROOT = " ${ pkgdir } " install
2015-01-13 09:28:12 +08:00
2013-07-31 23:59:42 +08:00
# 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 } \
" ${ pkgdir } /usr/share/icons/hicolor/ ${ size } x ${ size } /apps/linguist-qt5.png "
done
install -D -m644 src/assistant/assistant/images/assistant.png \
" ${ pkgdir } /usr/share/icons/hicolor/32x32/apps/assistant-qt5.png "
install -D -m644 src/assistant/assistant/images/assistant-128.png \
" ${ pkgdir } /usr/share/icons/hicolor/128x128/apps/assistant-qt5.png "
install -D -m644 src/designer/src/designer/images/designer.png \
" ${ pkgdir } /usr/share/icons/hicolor/128x128/apps/designer-qt5.png "
install -D -m644 src/qdbus/qdbusviewer/images/qdbusviewer.png \
" ${ pkgdir } /usr/share/icons/hicolor/32x32/apps/qdbusviewer-qt5.png "
install -D -m644 src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
" ${ pkgdir } /usr/share/icons/hicolor/128x128/apps/qdbusviewer-qt5.png "
install -d " ${ pkgdir } /usr/share/applications "
install -m644 " ${ srcdir } " /{ linguist-qt5,designer-qt5,assistant-qt5,qdbusviewer-qt5} .desktop \
" ${ pkgdir } /usr/share/applications/ "
_prlfix
# create some symlinks in /usr/bin, postfixed with -qt5
mkdir -p ${ pkgdir } /usr/bin
for i in $( ls ${ pkgdir } /usr/lib/qt5/bin) ; do
ln -s /usr/lib/qt5/bin/${ i } ${ pkgdir } /usr/bin/${ i } -qt5
done
2015-01-13 09:28:12 +08:00
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
2013-07-31 23:59:42 +08:00
}
package_qt5-webkit( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'Classes for a WebKit2 based implementation and a new QML API'
depends = ( 'qt5-sensors' 'qt5-location' 'qt5-webchannel' 'gst-plugins-base' 'libxslt'
'libxcomposite' 'libwebp' )
optdepends = ( 'gst-plugins-good: Webm codec support' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2015-01-13 09:28:12 +08:00
license = ( 'GPL3' 'LGPL' 'FDL' )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qtwebkit
2013-07-31 23:59:42 +08:00
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
# Fix wrong path in pc file
perl -pi -e " s, -L ${ srcdir } /?\S+,,g " " ${ pkgdir } " /usr/lib/pkgconfig/Qt5WebKit.pc
}
2015-01-07 09:57:16 +08:00
package_qt5-wayland( ) {
pkgdesc = 'Provides APIs for Wayland'
depends = ( 'qt5-base' 'libxcomposite' 'libxkbcommon' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2015-01-07 09:57:16 +08:00
cd ${ _pkgfqn } /qtwayland
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
}
package_qt5-webchannel( ) {
pkgdesc = 'Provides access to QObject or QML objects from HTML clients for seamless integration of Qt applications with HTML/JavaScript clients'
depends = ( 'qt5-declarative' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2015-01-07 09:57:16 +08:00
cd ${ _pkgfqn } /qtwebchannel
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
install -D -m644 LGPL_EXCEPTION.txt \
" ${ pkgdir } " /usr/share/licenses/${ pkgname } /LGPL_EXCEPTION.txt
}
package_qt5-webengine( ) {
pkgdesc = 'Provides support for web applications using the Chromium browser project'
depends = ( 'qt5-declarative' 'nss' 'libxtst' 'libxcursor' 'libxrandr' 'alsa-lib' 'libxcomposite' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2015-01-07 09:57:16 +08:00
license = ( 'LGPL' )
cd ${ _pkgfqn } /qtwebengine
make INSTALL_ROOT = " ${ pkgdir } " install
rm -rf " ${ pkgdir } " /usr/share/doc
}
2014-06-14 21:37:14 +08:00
package_qt5-websockets( ) {
pkgdesc = 'Provides WebSocket communication compliant with RFC 6455'
depends = ( 'qt5-declarative' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2014-06-14 21:37:14 +08:00
license = ( 'LGPL' )
cd ${ _pkgfqn } /qtwebsockets
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
}
2016-02-29 05:59:46 +08:00
package_qt5-webview( ) {
pkgdesc = 'Provides a way to display web content in a QML application'
depends = ( 'qt5-webengine' )
options = ( "debug" )
license = ( 'LGPL' )
cd ${ _pkgfqn } /qtwebview
make INSTALL_ROOT = " ${ pkgdir } " install
}
2013-07-31 23:59:42 +08:00
package_qt5-x11extras( ) {
2015-01-13 09:28:12 +08:00
pkgdesc = 'Provides platform-specific APIs for X11'
2013-07-31 23:59:42 +08:00
depends = ( 'qt5-base' )
conflicts = ( 'qt5' )
2015-04-13 00:20:58 +08:00
options = ( "debug" )
2013-07-31 23:59:42 +08:00
2015-01-13 09:28:12 +08:00
cd ${ _pkgfqn } /qtx11extras
2013-07-31 23:59:42 +08:00
make INSTALL_ROOT = " ${ pkgdir } " install
_prlfix
}