2012-12-14 03:37:36 +08:00
|
|
|
#
|
|
|
|
# QT Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2013-12-23 01:56:11 +08:00
|
|
|
# maintainer: Fabian Kosmale <inkane@chakra-project.org>
|
|
|
|
# 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'
|
2013-12-23 01:56:11 +08:00
|
|
|
'qt5-connectivity'
|
|
|
|
'qt5-doc'
|
2014-06-14 21:37:14 +08:00
|
|
|
'qt5-enginio'
|
2013-07-31 23:59:42 +08:00
|
|
|
'qt5-declarative'
|
|
|
|
'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-quick1'
|
|
|
|
'qt5-quickcontrols'
|
|
|
|
'qt5-script'
|
|
|
|
'qt5-sensors'
|
|
|
|
'qt5-serialport'
|
|
|
|
'qt5-svg'
|
|
|
|
'qt5-tools'
|
|
|
|
'qt5-translations'
|
|
|
|
'qt5-webkit'
|
|
|
|
'qt5-x11extras'
|
2014-06-14 21:37:14 +08:00
|
|
|
'qt5-websockets'
|
2013-07-31 23:59:42 +08:00
|
|
|
'qt5-xmlpatterns'
|
|
|
|
'qt5-private-headers')
|
2014-09-19 05:04:26 +08:00
|
|
|
pkgver=5.3.2
|
|
|
|
pkgrel=1
|
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')
|
2012-12-14 03:37:36 +08:00
|
|
|
makedepends=('libtiff' 'libpng' 'libmng' 'sqlite3' 'ca-certificates' 'glib2' 'dbus'
|
|
|
|
'fontconfig' 'libgl' 'libsm' 'libxrandr' 'libxv' 'libxi' 'alsa-lib' 'icu'
|
|
|
|
'xdg-utils' 'hicolor-icon-theme' 'desktop-file-utils' 'mesa' 'postgresql-libs'
|
2014-06-14 21:37:14 +08:00
|
|
|
'mariadb' 'unixodbc' 'cups' 'libxinerama' 'libxcomposite' 'libxcursor' 'libxkbcommon' 'python2' 'gperf' 'ruby'
|
2014-09-19 05:04:26 +08:00
|
|
|
'xcb-util-image' 'xcb-util-keysyms' 'xcb-util-renderutil' 'xcb-util-wm' 'libpulse'
|
2014-07-02 13:46:53 +08:00
|
|
|
'gstreamer' 'gst-plugins-base' 'gst-plugins-good'
|
|
|
|
'gst-plugins-bad' 'gst-plugins-ugly' 'harfbuzz' 'pkg-config')
|
2013-12-23 01:56:11 +08:00
|
|
|
_pkgfqn="qt-everywhere-opensource-src-${pkgver}"
|
2014-09-19 05:04:26 +08:00
|
|
|
source=("http://download.qt-project.org/official_releases/qt/5.3/${pkgver}/single/${_pkgfqn}.tar.xz"
|
2013-07-31 23:59:42 +08:00
|
|
|
'assistant-qt5.desktop' 'designer-qt5.desktop' 'linguist-qt5.desktop' 'qtconfig-qt5.desktop'
|
2013-01-04 00:50:31 +08:00
|
|
|
'youtubeview.desktop' 'flickrview.desktop' 'browser.desktop' 'fancybrowser.desktop' 'qmlviewer.desktop'
|
2014-07-02 13:46:53 +08:00
|
|
|
'qdbusviewer-qt5.desktop')
|
2014-09-19 05:04:26 +08:00
|
|
|
sha1sums=('fb156a87a193c9a7a2fa51efc89660a3b619ace5'
|
2013-07-31 23:59:42 +08:00
|
|
|
'981cf376da66c8be7c7ec99866da0299114192f6'
|
|
|
|
'e131a17beda4625f21022981a519b5e8d8c8e6f7'
|
|
|
|
'62806b6696696d4ef69e4c0733fc9f1d761f08cd'
|
|
|
|
'2e0b6245c40c91fbb0a965724450b6d6883f2927'
|
|
|
|
'bd7d161a013f7cf09bd6638a6ff26bfe91ddf7d5'
|
|
|
|
'f7a01d24dd011d1d7ee92ac64e9fb9cf8c99fe47'
|
|
|
|
'78f65f580c14fdc24d0052702d216ed37ee6e01d'
|
|
|
|
'b4ddedb067154a959c1b4577de8829dffd710f7a'
|
|
|
|
'b0e6c61b8364eb3f7af4dae41fa7738c3181dd96'
|
2014-07-02 13:46:53 +08:00
|
|
|
'6c845b5879d2f443078e25856cf60cf53644c41b')
|
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
|
|
|
|
2014-06-22 18:47:36 +08:00
|
|
|
|
2013-12-23 01:56:11 +08:00
|
|
|
prepare() {
|
|
|
|
cd ${_pkgfqn}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2012-12-14 03:37:36 +08:00
|
|
|
build() {
|
|
|
|
cd $srcdir/$_pkgfqn
|
2013-07-31 23:59:42 +08:00
|
|
|
# reenable patch later
|
|
|
|
#patch -p1 -i "$srcdir/defaultbookmarks_new.diff"
|
2012-12-14 03:37:36 +08:00
|
|
|
|
|
|
|
unset QTDIR
|
|
|
|
export PATH="$PWD/qtbase/bin:$PWD/qtrepotools/bin:$PATH"
|
2014-06-14 21:37:14 +08:00
|
|
|
export LD_LIBRARY_PATH="${QTDIR}"/qtbase/lib:"${QTDIR}"/qttools/lib:"${LD_LIBRARY_PATH}"
|
|
|
|
export QT_PLUGIN_PATH="${QTDIR}"/qtbase/plugins
|
2014-06-22 18:47:36 +08:00
|
|
|
export QTDIR=${srcdir}/${_pkgfqn}
|
2014-07-06 06:13:18 +08:00
|
|
|
export _xkbconfigroot=$(pkg-config --variable=xkb_base xkeyboard-config)
|
2014-06-14 21:37:14 +08:00
|
|
|
|
2012-12-14 03:37:36 +08:00
|
|
|
./configure -confirm-license -opensource \
|
2013-02-22 08:26:58 +08:00
|
|
|
-prefix /usr \
|
|
|
|
-bindir /usr/lib/qt5/bin \
|
|
|
|
-headerdir /usr/include/qt5 \
|
|
|
|
-archdatadir /usr/lib/qt5 \
|
|
|
|
-docdir /usr/share/doc/qt5 \
|
|
|
|
-plugindir /usr/lib/qt5/plugins \
|
|
|
|
-importdir /usr/lib/qt5/imports \
|
2013-02-23 09:01:53 +08:00
|
|
|
-qmldir /usr/lib/qt5/qml \
|
2013-02-22 08:26:58 +08:00
|
|
|
-datadir /usr/share/qt5 \
|
|
|
|
-testsdir /usr/share/qt5/tests \
|
|
|
|
-translationdir /usr/share/qt5/translations \
|
|
|
|
-sysconfdir /etc/xdg/qt5 \
|
|
|
|
-examplesdir /usr/share/qt5/examples \
|
2012-12-14 03:37:36 +08:00
|
|
|
-system-sqlite \
|
2013-02-22 08:26:58 +08:00
|
|
|
-openssl-linked \
|
2014-06-14 21:37:14 +08:00
|
|
|
-no-rpath \
|
2013-02-22 08:26:58 +08:00
|
|
|
-optimized-qmake \
|
|
|
|
-reduce-relocations \
|
|
|
|
-dbus-linked \
|
2014-06-14 21:37:14 +08:00
|
|
|
-system-harfbuzz \
|
|
|
|
-journald \
|
2013-02-22 08:26:58 +08:00
|
|
|
-no-gtkstyle \
|
2013-07-31 23:59:42 +08:00
|
|
|
-opengl desktop \
|
2013-02-22 08:26:58 +08:00
|
|
|
-feature-menu \
|
|
|
|
-feature-textdate \
|
2014-07-06 06:13:18 +08:00
|
|
|
-xkb-config-root $_xkbconfigroot \
|
2014-07-06 04:20:57 +08:00
|
|
|
-system-xkbcommon \
|
2013-02-22 08:26:58 +08:00
|
|
|
-feature-ftp \
|
|
|
|
-xcursor
|
2012-12-14 03:37:36 +08:00
|
|
|
make
|
|
|
|
#make module-qtwebkit
|
2014-04-14 06:08:16 +08:00
|
|
|
|
|
|
|
# Fix paths
|
2014-06-14 21:37:14 +08:00
|
|
|
find "${QTDIR}" -name Makefile -exec sed -i "s|/usr/lib/qt5/bin/qdoc|${QTDIR}/qtbase/bin/qdoc|g" {} +
|
|
|
|
find "${QTDIR}" -name Makefile.qmake-docs -exec sed -i "s|/usr/lib/qt5/bin/qdoc|${QTDIR}/qtbase/bin/qdoc|g" {} +
|
2014-06-22 18:47:36 +08:00
|
|
|
find "${QTDIR}" -name Makefile -exec sed -i "s|/usr/lib/qt5/bin/qhelpgenerator|${QTDIR}/qttools/bin/qhelpgenerator|g" {} +
|
2014-06-14 21:37:14 +08:00
|
|
|
find "${QTDIR}" -name Makefile.qmake-docs -exec sed -i "s|/usr/lib/qt5/bin/qhelpgenerator|${QTDIR}/qttools/bin/qhelpgenerator|g" {} +
|
|
|
|
sed -i "s|/usr/lib/qt5/bin/qhelpgenerator|${QTDIR}/qttools/bin/qhelpgenerator|g" qtwebkit/Source/Makefile.api
|
2014-04-14 06:08:16 +08:00
|
|
|
|
|
|
|
make docs
|
|
|
|
}
|
2012-12-14 03:37:36 +08:00
|
|
|
|
2013-07-31 23:59:42 +08:00
|
|
|
package_qt5-base() {
|
2012-12-14 03:37:36 +08:00
|
|
|
pkgdesc='A cross-platform application and UI framework'
|
2013-07-31 23:59:42 +08:00
|
|
|
conflicts=('qt5')
|
2014-06-22 18:47:36 +08:00
|
|
|
options=("staticlibs")
|
2012-12-14 03:37:36 +08:00
|
|
|
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'
|
2014-07-06 05:33:52 +08:00
|
|
|
'pulseaudio' 'gstreamer' 'gst-plugins-base' 'gst-plugins-ugly' 'gst-plugins-good'
|
2014-07-06 04:20:57 +08:00
|
|
|
'xcb-util-image' 'xcb-util-keysyms'
|
2014-09-19 05:04:26 +08:00
|
|
|
'xcb-util-renderutil' 'xcb-util-wm' 'libxkbcommon')
|
2012-12-14 03:37:36 +08:00
|
|
|
optdepends=('postgresql-libs: PostgreSQL driver'
|
2014-04-14 06:08:16 +08:00
|
|
|
'libmariadbclient: MySQL driver'
|
2012-12-14 03:37:36 +08:00
|
|
|
'unixodbc: ODBC driver'
|
|
|
|
'libxinerama: Xinerama support'
|
|
|
|
'libxfixes: Xfixes support')
|
|
|
|
|
2013-07-31 23:59:42 +08:00
|
|
|
cd $srcdir/$_pkgfqn/qtbase
|
2012-12-14 03:37:36 +08:00
|
|
|
make INSTALL_ROOT=$pkgdir install
|
2012-12-21 07:57:13 +08:00
|
|
|
|
2013-07-31 23:59:42 +08:00
|
|
|
_prlfix
|
|
|
|
|
|
|
|
# Fix wrong qmake path in pri file
|
|
|
|
sed -i "s|${srcdir}/${_pkgfqn}/qtbase|/usr|" \
|
2013-12-23 01:56:11 +08:00
|
|
|
"${pkgdir}"/usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri
|
|
|
|
|
2013-07-31 23:59:42 +08:00
|
|
|
|
|
|
|
# create some symlinks in /usr/bin, postfixed with -qt5
|
2013-02-22 08:26:58 +08:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
# install license
|
|
|
|
cd "${srcdir}"
|
|
|
|
install -D -m644 ${_pkgfqn}/qtbase/LGPL_EXCEPTION.txt \
|
|
|
|
${pkgdir}/usr/share/licenses/${pkgbase}/LGPL_EXCEPTION.txt
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-12-23 01:56:11 +08:00
|
|
|
package_qt5-connectivity() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (QtBluetooth, QtNfc)'
|
2014-09-19 05:04:26 +08:00
|
|
|
depends=('qt5-declarative')
|
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() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (QtQml, QtQuick)'
|
2014-09-19 05:04:26 +08:00
|
|
|
depends=('qt5-xmlpatterns')
|
2013-07-31 23:59:42 +08:00
|
|
|
conflicts=('qt5')
|
|
|
|
|
|
|
|
cd $srcdir/$_pkgfqn/qtdeclarative
|
|
|
|
make INSTALL_ROOT=$pkgdir install
|
|
|
|
|
|
|
|
_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
|
|
|
|
}
|
|
|
|
|
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
|
2014-04-15 05:55:23 +08:00
|
|
|
|
|
|
|
# remove duplicated files from qt5-tools
|
|
|
|
rm -rf "${pkgdir}"/usr/share/qt5
|
2014-06-22 18:47:36 +08:00
|
|
|
|
|
|
|
# consider moving the following stuff into a new packgage, like qt5-examples
|
|
|
|
install -d ${pkgdir}/usr/share/applications
|
|
|
|
install -m644 ${srcdir}/youtubeview.desktop ${pkgdir}/usr/share/applications/
|
|
|
|
install -m644 ${srcdir}/flickrview.desktop ${pkgdir}/usr/share/applications/
|
|
|
|
install -m644 ${srcdir}/qmlviewer.desktop ${pkgdir}/usr/share/applications/
|
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')
|
|
|
|
|
|
|
|
cd ${_pkgfqn}/qtenginio
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
|
|
|
|
_prlfix
|
|
|
|
|
|
|
|
install -D -m644 LGPL_EXCEPTION.txt \
|
|
|
|
"${pkgdir}"/usr/share/licenses/${pkgname}/LGPL_EXCEPTION.txt
|
|
|
|
}
|
|
|
|
|
2013-12-23 01:56:11 +08:00
|
|
|
|
|
|
|
|
2013-07-31 23:59:42 +08:00
|
|
|
package_qt5-xmlpatterns() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (QtXmlPatterns)'
|
|
|
|
depends=('qt5-base')
|
|
|
|
conflicts=('qt5')
|
|
|
|
|
|
|
|
cd $srcdir/$_pkgfqn/qtxmlpatterns
|
|
|
|
make INSTALL_ROOT=$pkgdir install
|
|
|
|
|
|
|
|
_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
|
|
|
|
}
|
|
|
|
|
|
|
|
package_qt5-translations() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (Translations)'
|
|
|
|
depends=('qt5-base')
|
|
|
|
conflicts=('qt5')
|
|
|
|
|
|
|
|
cd ${srcdir}/${_pkgfqn}/qttranslations
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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')
|
|
|
|
|
|
|
|
cd ${srcdir}/${_pkgfqn}/qtmultimedia
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
|
|
|
|
_prlfix
|
2012-12-14 03:37:36 +08:00
|
|
|
}
|
|
|
|
|
2013-07-31 23:59:42 +08:00
|
|
|
package_qt5-graphicaleffects() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (QtGraphicalEffects)'
|
|
|
|
depends=('qt5-declarative')
|
|
|
|
conflicts=('qt5')
|
|
|
|
|
|
|
|
cd ${srcdir}/${_pkgfqn}/qtgraphicaleffects
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_qt5-imageformats() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (Images plugins)'
|
|
|
|
depends=('qt5-base' 'libtiff' 'libmng')
|
|
|
|
conflicts=('qt5')
|
|
|
|
|
|
|
|
cd ${srcdir}/${_pkgfqn}/qtimageformats
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
2013-12-23 01:56:11 +08:00
|
|
|
package_qt5-location() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (QtLocation, QtPositioning)'
|
|
|
|
depends=('qt5-declarative')
|
|
|
|
|
|
|
|
cd ${_pkgfqn}/qtlocation
|
|
|
|
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-quick1() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (QtDeclarative)'
|
|
|
|
depends=('qt5-webkit' 'qt5-script')
|
|
|
|
conflicts=('qt5')
|
|
|
|
|
|
|
|
cd ${srcdir}/${_pkgfqn}/qtquick1
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
|
|
|
|
_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
|
|
|
|
}
|
|
|
|
|
|
|
|
package_qt5-quickcontrols() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (QtQuick)'
|
|
|
|
depends=('qt5-declarative')
|
|
|
|
conflicts=('qt5')
|
|
|
|
|
|
|
|
cd ${srcdir}/${_pkgfqn}/qtquickcontrols
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_qt5-script() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (QtScript)'
|
|
|
|
depends=('qt5-base')
|
|
|
|
conflicts=('qt5')
|
|
|
|
|
|
|
|
cd ${srcdir}/${_pkgfqn}/qtscript
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
|
|
|
|
_prlfix
|
|
|
|
}
|
|
|
|
|
|
|
|
package_qt5-sensors() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (QtSensors)'
|
|
|
|
depends=('qt5-declarative')
|
|
|
|
conflicts=('qt5')
|
|
|
|
|
|
|
|
cd ${srcdir}/${_pkgfqn}/qtsensors
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
|
|
|
|
_prlfix
|
|
|
|
}
|
|
|
|
|
|
|
|
package_qt5-serialport() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (QtSerialPort)'
|
|
|
|
depends=('qt5-base')
|
|
|
|
conflicts=('qt5')
|
|
|
|
|
|
|
|
cd ${srcdir}/${_pkgfqn}/qtserialport
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
|
|
|
|
_prlfix
|
|
|
|
}
|
|
|
|
|
|
|
|
package_qt5-svg() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (QtSvg)'
|
|
|
|
depends=('qt5-base')
|
|
|
|
conflicts=('qt5')
|
|
|
|
|
|
|
|
cd ${srcdir}/${_pkgfqn}/qtsvg
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
|
|
|
|
_prlfix
|
|
|
|
}
|
|
|
|
|
|
|
|
package_qt5-tools() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (Development Tools, QtHelp)'
|
|
|
|
depends=('qt5-webkit' 'desktop-file-utils' 'qt5-translations' 'hicolor-icon-theme'
|
|
|
|
'xdg-utils')
|
|
|
|
optdepends=('qt5-doc: documentation')
|
|
|
|
conflicts=('qt5')
|
2014-06-22 18:47:36 +08:00
|
|
|
options=("staticlibs")
|
2013-07-31 23:59:42 +08:00
|
|
|
|
|
|
|
cd ${srcdir}/${_pkgfqn}/qttools
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
|
|
|
|
# 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
|
|
|
|
}
|
|
|
|
|
|
|
|
package_qt5-webkit() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (QtWebKit)'
|
2014-07-06 04:20:57 +08:00
|
|
|
depends=('qt5-declarative' 'gstreamer' 'libxslt' 'libxcomposite' 'qt5-sensors' 'qt5-location')
|
2013-07-31 23:59:42 +08:00
|
|
|
conflicts=('qt5')
|
|
|
|
|
|
|
|
cd ${srcdir}/${_pkgfqn}/qtwebkit
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2014-06-14 21:37:14 +08:00
|
|
|
|
|
|
|
package_qt5-websockets() {
|
|
|
|
pkgdesc='Provides WebSocket communication compliant with RFC 6455'
|
|
|
|
depends=('qt5-declarative')
|
|
|
|
license=('LGPL')
|
|
|
|
|
|
|
|
cd ${_pkgfqn}/qtwebsockets
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
|
|
|
|
_prlfix
|
|
|
|
}
|
|
|
|
|
2013-07-31 23:59:42 +08:00
|
|
|
package_qt5-x11extras() {
|
|
|
|
pkgdesc='A cross-platform application and UI framework (QtX11Extras)'
|
|
|
|
depends=('qt5-base')
|
|
|
|
conflicts=('qt5')
|
|
|
|
|
|
|
|
cd ${srcdir}/${_pkgfqn}/qtx11extras
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
|
|
|
|
_prlfix
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-12-20 07:32:03 +08:00
|
|
|
package_qt5-private-headers() {
|
2012-12-14 03:37:36 +08:00
|
|
|
pkgdesc="Qt private headers for development"
|
2013-07-31 23:59:42 +08:00
|
|
|
depends=("qt5-base=${pkgver}")
|
2012-12-14 03:37:36 +08:00
|
|
|
|
2013-02-22 08:26:58 +08:00
|
|
|
install -d ${pkgdir}/usr/include/qt5/{QtCore,QtDeclarative,QtGui,QtScript}
|
|
|
|
install -d ${pkgdir}/usr/src/qt5/{corelib,declarative,gui,script}
|
2012-12-14 03:37:36 +08:00
|
|
|
|
2013-02-22 08:26:58 +08:00
|
|
|
cp -r ${srcdir}/$_pkgfqn/qtbase/include/QtCore/${pkgver}/QtCore/private/ ${pkgdir}/usr/include/qt5/QtCore/
|
|
|
|
cp -r ${srcdir}/$_pkgfqn/qtbase/include/QtGui/${pkgver}/QtGui/private/ ${pkgdir}/usr/include/qt5/QtGui/
|
|
|
|
cp -r ${srcdir}/$_pkgfqn/qtdeclarative/include/QtQml/${pkgver}/QtQml/private/ ${pkgdir}/usr/include/qt5/QtQml/
|
|
|
|
cp -r ${srcdir}/$_pkgfqn/qtscript/include/QtScript/${pkgver}/QtScript/private/ ${pkgdir}/usr/include/qt5/QtScript/
|
2012-12-14 03:37:36 +08:00
|
|
|
|
2012-12-20 07:32:03 +08:00
|
|
|
for i in corelib gui; do
|
2013-02-22 08:26:58 +08:00
|
|
|
cp -r ${srcdir}/$_pkgfqn/qtbase/src/${i} ${pkgdir}/usr/src/qt5/
|
2012-12-14 03:37:36 +08:00
|
|
|
done
|
2013-02-22 08:26:58 +08:00
|
|
|
cp -r ${srcdir}/$_pkgfqn/qtscript/src/script ${pkgdir}/usr/src/qt5/
|
|
|
|
cp -r ${srcdir}/$_pkgfqn/qtdeclarative/src/qml ${pkgdir}/usr/src/qt5/
|
2012-12-14 03:37:36 +08:00
|
|
|
}
|