2013-03-02 01:37:30 +00:00
|
|
|
# $Id: PKGBUILD 179026 2013-03-01 17:55:20Z andrea $
|
|
|
|
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
# Contributor: Pierre Schmitz <pierre@archlinux.de>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - Just say NO to x86 optimizations, and no neon
|
|
|
|
# - disabled distcc - bad things happen
|
|
|
|
# - added -fno-strict-volatile-bitfields to CXXFLAGS to fix ARM bug
|
|
|
|
# - no libfbclient/ibase, issues building on ARM
|
|
|
|
|
|
|
|
pkgname=qt4
|
2014-04-25 11:39:43 +00:00
|
|
|
pkgver=4.8.6
|
2014-12-14 18:50:54 +00:00
|
|
|
pkgrel=4
|
2013-03-02 01:37:30 +00:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url='http://qt-project.org/'
|
2013-08-28 00:35:40 +00:00
|
|
|
license=('GPL3' 'LGPL' 'FDL' 'custom')
|
2013-03-02 01:37:30 +00:00
|
|
|
pkgdesc='A cross-platform application and UI framework'
|
2013-10-18 23:56:40 +00:00
|
|
|
depends=('libtiff' 'libpng' 'sqlite' 'ca-certificates' 'dbus'
|
2013-03-02 01:37:30 +00:00
|
|
|
'fontconfig' 'libgl' 'libxrandr' 'libxv' 'libxi' 'alsa-lib'
|
2013-12-11 17:12:47 +00:00
|
|
|
'xdg-utils' 'hicolor-icon-theme' 'desktop-file-utils' 'libmng')
|
2013-03-26 02:59:39 +00:00
|
|
|
makedepends=('postgresql-libs' 'mariadb' 'unixodbc' 'cups' 'gtk2'
|
2013-10-18 23:56:40 +00:00
|
|
|
'mesa')
|
2013-07-02 16:58:11 +00:00
|
|
|
optdepends=('qtchooser: set the default Qt toolkit'
|
|
|
|
'postgresql-libs: PostgreSQL driver'
|
2013-03-25 21:11:59 +00:00
|
|
|
'libmariadbclient: MariaDB driver'
|
2013-03-02 01:37:30 +00:00
|
|
|
'unixodbc: ODBC driver'
|
|
|
|
'libxinerama: Xinerama support'
|
|
|
|
'libxcursor: Xcursor support'
|
|
|
|
'libxfixes: Xfixes support'
|
2014-12-14 18:50:54 +00:00
|
|
|
'icu: Unicode support'
|
|
|
|
'sni-qt: StatusNotifierItem (AppIndicators) support')
|
2013-03-02 01:37:30 +00:00
|
|
|
install="${pkgname}.install"
|
2013-10-22 13:36:25 +00:00
|
|
|
options=('!distcc')
|
2013-03-02 01:37:30 +00:00
|
|
|
replaces=('qt<=4.8.4')
|
|
|
|
conflicts=('qt')
|
2013-10-22 18:37:54 +00:00
|
|
|
options=('staticlibs') # libQtUiTools builds as static only
|
2013-03-02 01:37:30 +00:00
|
|
|
_pkgfqn="qt-everywhere-opensource-src-${pkgver}"
|
2013-07-02 13:53:51 +00:00
|
|
|
source=("http://download.qt-project.org/official_releases/qt/4.8/${pkgver}/${_pkgfqn}.tar.gz"
|
2013-05-10 18:56:40 +00:00
|
|
|
'qtconfig-qt4.desktop' 'assistant-qt4.desktop' 'designer-qt4.desktop'
|
|
|
|
'linguist-qt4.desktop' 'qdbusviewer-qt4.desktop'
|
2013-08-28 00:35:40 +00:00
|
|
|
'improve-cups-support.patch'
|
2014-11-06 02:59:35 +00:00
|
|
|
'moc-boost-workaround.patch'
|
2014-12-14 18:50:54 +00:00
|
|
|
'CVE-2014-0190.patch'
|
|
|
|
'kubuntu_14_systemtrayicon.diff')
|
2014-04-25 11:39:43 +00:00
|
|
|
md5sums=('2edbe4d6c2eff33ef91732602f3518eb'
|
2013-03-25 21:11:59 +00:00
|
|
|
'a16638f4781e56e7887ff8212a322ecc'
|
2013-05-10 18:56:40 +00:00
|
|
|
'8a28b3f52dbeb685d4b69440b520a3e1'
|
|
|
|
'9727c406c240990870c905696a8c5bd1'
|
|
|
|
'0e384663d3dd32abe35f5331c4147569'
|
|
|
|
'b859c5673e5098c39f72b2252947049e'
|
2013-08-28 00:35:40 +00:00
|
|
|
'c439c7731c25387352d8453ca7574971'
|
2014-11-06 02:59:35 +00:00
|
|
|
'da387bde22ae1c446f12525d2a31f070'
|
2014-12-14 18:50:54 +00:00
|
|
|
'34ed257109afb83342cfe514c8abe027'
|
|
|
|
'a523644faa8f98a73f55c4aa23c114a6')
|
2013-03-02 01:37:30 +00:00
|
|
|
|
2013-07-02 13:44:25 +00:00
|
|
|
prepare() {
|
2013-03-02 01:37:30 +00:00
|
|
|
cd ${_pkgfqn}
|
|
|
|
|
|
|
|
# (FS#28381) (KDEBUG#180051)
|
|
|
|
patch -p1 -i "${srcdir}"/improve-cups-support.patch
|
2014-11-06 02:59:35 +00:00
|
|
|
|
|
|
|
# QTBUG#22829
|
|
|
|
patch -p1 -i "${srcdir}"/moc-boost-workaround.patch
|
2013-03-02 01:37:30 +00:00
|
|
|
|
2014-04-25 11:39:43 +00:00
|
|
|
# QTBUG#38367
|
|
|
|
patch -p1 -i "${srcdir}"/CVE-2014-0190.patch
|
2013-12-11 17:12:47 +00:00
|
|
|
|
2014-12-14 18:50:54 +00:00
|
|
|
# http://blog.martin-graesslin.com/blog/2014/06/where-are-my-systray-icons/
|
|
|
|
patch -p1 -i "${srcdir}"/kubuntu_14_systemtrayicon.diff
|
|
|
|
|
2013-03-02 01:37:30 +00:00
|
|
|
export CXXFLAGS="$CXXFLAGS -fno-strict-volatile-bitfields"
|
|
|
|
|
|
|
|
sed -i "s|-O2|${CXXFLAGS}|" mkspecs/common/{g++,gcc}-base.conf
|
|
|
|
sed -i "/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g" mkspecs/common/gcc-base-unix.conf
|
|
|
|
sed -i "/^QMAKE_LFLAGS\s/s|+=|+= ${LDFLAGS}|g" mkspecs/common/gcc-base.conf
|
2013-07-02 13:44:25 +00:00
|
|
|
cp mkspecs/common/linux{,32}.conf
|
|
|
|
sed -i "/^QMAKE_LIBDIR\s/s|=|= /usr/lib32|g" mkspecs/common/linux32.conf
|
|
|
|
sed -i "s|common/linux.conf|common/linux32.conf|" mkspecs/linux-g++-32/qmake.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
export QT4DIR="${srcdir}"/${_pkgfqn}
|
|
|
|
export LD_LIBRARY_PATH=${QT4DIR}/lib:${LD_LIBRARY_PATH}
|
|
|
|
|
|
|
|
cd ${_pkgfqn}
|
2013-03-02 01:37:30 +00:00
|
|
|
|
|
|
|
./configure -confirm-license -opensource \
|
|
|
|
-prefix /usr \
|
|
|
|
-bindir /usr/lib/qt4/bin \
|
|
|
|
-headerdir /usr/include/qt4 \
|
|
|
|
-docdir /usr/share/doc/qt4 \
|
|
|
|
-plugindir /usr/lib/qt4/plugins \
|
|
|
|
-importdir /usr/lib/qt4/imports \
|
|
|
|
-datadir /usr/share/qt4 \
|
|
|
|
-translationdir /usr/share/qt4/translations \
|
|
|
|
-sysconfdir /etc/xdg \
|
|
|
|
-examplesdir /usr/share/doc/qt4/examples \
|
|
|
|
-demosdir /usr/share/doc/qt4/demos \
|
|
|
|
-plugin-sql-{psql,mysql,sqlite,odbc} \
|
|
|
|
-system-sqlite \
|
|
|
|
-no-phonon \
|
|
|
|
-no-phonon-backend \
|
|
|
|
-no-webkit \
|
|
|
|
-graphicssystem raster \
|
|
|
|
-openssl-linked \
|
|
|
|
-nomake demos \
|
|
|
|
-nomake examples \
|
|
|
|
-nomake docs \
|
|
|
|
-silent \
|
|
|
|
-no-rpath \
|
|
|
|
-optimized-qmake \
|
|
|
|
-reduce-relocations \
|
|
|
|
-dbus-linked \
|
|
|
|
-no-openvg \
|
2013-03-02 02:59:27 +00:00
|
|
|
-no-mmx \
|
2013-03-02 01:37:30 +00:00
|
|
|
-no-3dnow \
|
|
|
|
-no-sse \
|
|
|
|
-no-sse2 \
|
|
|
|
-no-sse3 \
|
|
|
|
-no-ssse3 \
|
|
|
|
-no-sse4.1 \
|
|
|
|
-no-sse4.2 \
|
|
|
|
-no-avx \
|
|
|
|
-no-neon
|
2013-03-02 02:59:27 +00:00
|
|
|
|
2013-03-02 01:37:30 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${_pkgfqn}
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
|
|
|
|
|
|
# install missing icons and desktop files
|
|
|
|
install -D -m644 src/gui/dialogs/images/qtlogo-64.png \
|
2013-05-10 18:56:40 +00:00
|
|
|
"${pkgdir}"/usr/share/icons/hicolor/64x64/apps/qt4logo.png
|
|
|
|
install -D -m644 tools/assistant/tools/assistant/images/assistant.png \
|
|
|
|
"${pkgdir}"/usr/share/icons/hicolor/32x32/apps/assistant-qt4.png
|
|
|
|
install -D -m644 tools/assistant/tools/assistant/images/assistant-128.png \
|
|
|
|
"${pkgdir}"/usr/share/icons/hicolor/128x128/apps/assistant-qt4.png
|
|
|
|
install -D -m644 tools/designer/src/designer/images/designer.png \
|
|
|
|
"${pkgdir}"/usr/share/icons/hicolor/128x128/apps/designer-qt4.png
|
|
|
|
for icon in tools/linguist/linguist/images/icons/linguist-*-32.png ; do
|
|
|
|
size=$(echo $(basename ${icon}) | cut -d- -f2)
|
|
|
|
install -D -m644 ${icon} \
|
|
|
|
"${pkgdir}"/usr/share/icons/hicolor/${size}x${size}/apps/linguist-qt4.png
|
|
|
|
done
|
|
|
|
install -D -m644 tools/qdbus/qdbusviewer/images/qdbusviewer.png \
|
|
|
|
"${pkgdir}"/usr/share/icons/hicolor/32x32/apps/qdbusviewer-qt4.png
|
|
|
|
install -D -m644 tools/qdbus/qdbusviewer/images/qdbusviewer-128.png \
|
|
|
|
"${pkgdir}"/usr/share/icons/hicolor/128x128/apps/qdusviewer-qt4.png
|
2013-03-02 01:37:30 +00:00
|
|
|
|
2013-03-25 21:11:59 +00:00
|
|
|
install -d "${pkgdir}"/usr/share/applications
|
2013-05-10 18:56:40 +00:00
|
|
|
install -m644 "${srcdir}"/{assistant,designer,linguist,qtconfig,qdbusviewer}-qt4.desktop \
|
|
|
|
"${pkgdir}"/usr/share/applications/
|
2013-03-02 01:37:30 +00:00
|
|
|
|
|
|
|
# Useful symlinks for cmake and configure scripts
|
|
|
|
install -d "${pkgdir}"/usr/bin
|
|
|
|
for b in "${pkgdir}"/usr/lib/qt4/bin/*; do
|
|
|
|
ln -s /usr/lib/qt4/bin/$(basename $b) "${pkgdir}"/usr/bin/$(basename $b)-qt4
|
|
|
|
done
|
|
|
|
|
|
|
|
# install license addition
|
|
|
|
install -D -m644 LGPL_EXCEPTION.txt \
|
|
|
|
${pkgdir}/usr/share/licenses/${pkgname}/LGPL_EXCEPTION.txt
|
|
|
|
|
|
|
|
# Fix wrong libs path in pkgconfig files
|
|
|
|
find "${pkgdir}/usr/lib/pkgconfig" -type f -name '*.pc' \
|
|
|
|
-exec perl -pi -e "s, -L${srcdir}/?\S+,,g" {} \;
|
|
|
|
|
|
|
|
# Fix wrong bins path in pkgconfig files
|
|
|
|
find "${pkgdir}/usr/lib/pkgconfig" -type f -name '*.pc' \
|
|
|
|
-exec sed -i 's|/usr/bin/|/usr/lib/qt4/bin/|g' {} \;
|
|
|
|
|
|
|
|
# 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/' {} \;
|
|
|
|
|
2013-03-03 00:46:50 +00:00
|
|
|
# The TGA plugin is broken (FS#33568)
|
|
|
|
rm "${pkgdir}"/usr/lib/qt4/plugins/imageformats/libqtga.so
|
2013-03-02 01:37:30 +00:00
|
|
|
}
|