summaryrefslogtreecommitdiff
path: root/extra/qt4/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/qt4/PKGBUILD')
-rw-r--r--extra/qt4/PKGBUILD39
1 files changed, 25 insertions, 14 deletions
diff --git a/extra/qt4/PKGBUILD b/extra/qt4/PKGBUILD
index 430e0d077..c46a82e66 100644
--- a/extra/qt4/PKGBUILD
+++ b/extra/qt4/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 185057 2013-05-10 18:09:28Z andrea $
+# $Id: PKGBUILD 189290 2013-07-02 11:12:21Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
pkgname=qt4
-pkgver=4.8.4
-pkgrel=18
+pkgver=4.8.5
+pkgrel=1
arch=('i686' 'x86_64' 'mips64el')
url='http://qt-project.org/'
license=('GPL3' 'LGPL')
@@ -14,7 +14,8 @@ depends=('libtiff' 'libpng' 'libmng' 'sqlite' 'ca-certificates' 'dbus'
'xdg-utils' 'hicolor-icon-theme' 'desktop-file-utils')
makedepends=('postgresql-libs' 'mariadb' 'unixodbc' 'cups' 'gtk2'
'mesa-libgl')
-optdepends=('postgresql-libs: PostgreSQL driver'
+optdepends=('qtchooser: set the default Qt toolkit'
+ 'postgresql-libs: PostgreSQL driver'
'libmariadbclient: MariaDB driver'
'unixodbc: ODBC driver'
'libxinerama: Xinerama support'
@@ -30,12 +31,12 @@ options=('!libtool')
replaces=('qt<=4.8.4')
conflicts=('qt')
_pkgfqn="qt-everywhere-opensource-src-${pkgver}"
-source=("http://releases.qt-project.org/${pkgname}/source/${_pkgfqn}.tar.gz"
+source=("http://download.qt-project.org/official_releases/qt/4.8/${pkgver}/${_pkgfqn}.tar.gz"
'qtconfig-qt4.desktop' 'assistant-qt4.desktop' 'designer-qt4.desktop'
'linguist-qt4.desktop' 'qdbusviewer-qt4.desktop'
'improve-cups-support.patch'
'declarative-fix-sigbus.patch')
-md5sums=('89c5ecba180cae74c66260ac732dc5cb'
+md5sums=('1864987bdbb2f58f8ae8b350dfdbe133'
'a16638f4781e56e7887ff8212a322ecc'
'8a28b3f52dbeb685d4b69440b520a3e1'
'9727c406c240990870c905696a8c5bd1'
@@ -44,7 +45,7 @@ md5sums=('89c5ecba180cae74c66260ac732dc5cb'
'c439c7731c25387352d8453ca7574971'
'aac963d05a9d5733e2bfce9e26607f51')
-build() {
+prepare() {
cd ${_pkgfqn}
# (FS#28381) (KDEBUG#180051)
@@ -53,16 +54,26 @@ build() {
# MIPS N32-specific fix, shouldn't affect correctness on other platforms.
patch -Np1 -i "${srcdir}/declarative-fix-sigbus.patch"
- export QT4DIR="${srcdir}"/${_pkgfqn}
- export LD_LIBRARY_PATH=${QT4DIR}/lib:${LD_LIBRARY_PATH}
-
- [ "${CARCH}" = "mips64el" ] && export CXXFLAGS="${CXXFLAGS} -fpermissive"
-
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
- [ "$CARCH" != "mips64el" ] && extra="-plugin-sql-ibase"
+ 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}
+
+ if [ "${CARCH}" = "mips64el" ]; then
+ export CXXFLAGS="${CXXFLAGS} -fpermissive"
+ else
+ extra="-plugin-sql-ibase"
+ fi
+
+ cd ${_pkgfqn}
./configure -confirm-license -opensource \
-prefix /usr \
@@ -117,7 +128,7 @@ package() {
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
+ "${pkgdir}"/usr/share/icons/hicolor/128x128/apps/qdbusviewer-qt4.png
install -d "${pkgdir}"/usr/share/applications
install -m644 "${srcdir}"/{assistant,designer,linguist,qtconfig,qdbusviewer}-qt4.desktop \