2 # Maintainer: Janusz Lewandowski <lew21@xtreeme.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Pierre Schmitz <pierre@archlinux.de>
7 pkgname=('qt-qpa' 'qt-qpa-private-headers')
10 arch=('i686' 'x86_64')
11 url='http://qt.nokia.com/'
12 license=('GPL3' 'LGPL')
13 makedepends=('glib2' 'libgles' 'libegl' 'zlib' 'pcre' 'dbus' 'ca-certificates' 'libtiff' 'libpng' 'libmng'
14 'fontconfig' 'xdg-utils' 'hicolor-icon-theme' 'desktop-file-utils'
15 'cups' 'gtk2' 'icu' 'alsa-lib' 'pulseaudio' 'libwayland-git'
16 'postgresql-libs' 'mysql' 'sqlite3' 'unixodbc')
19 _gitroot="git://gitorious.org/qt/qt.git"
21 _pkgfqn="$_gitname-build"
25 export QT4DIR=$srcdir/$_pkgfqn
26 export PATH=${QT4DIR}/bin:${PATH}
27 export LD_LIBRARY_PATH=${QT4DIR}/lib:${LD_LIBRARY_PATH}
29 msg "Connecting to the GIT server...."
31 if [ -d $_gitname ] ; then
39 msg "Creating build directory..."
40 rm -rf $_gitname-build
41 cp -rH $_gitname $_gitname-build
43 msg "Starting build..."
46 sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
47 sed -i "/^QMAKE_RPATH/s| -Wl,-rpath,||g" mkspecs/common/g++.conf
48 sed -i "/^QMAKE_LFLAGS\s/s|+=|+= $LDFLAGS|g" mkspecs/common/g++.conf
50 export QT_WAYLAND_GL_CONFIG=wayland_egl
52 ./configure -confirm-license -opensource \
54 -docdir /opt/qt-qpa/share/doc/qt \
55 -plugindir /opt/qt-qpa/lib/qt/plugins \
56 -importdir /opt/qt-qpa/lib/qt/imports \
57 -datadir /opt/qt-qpa/share/qt \
58 -translationdir /opt/qt-qpa/share/qt/translations \
59 -sysconfdir /opt/qt-qpa/etc \
60 -examplesdir /opt/qt-qpa/share/doc/qt/examples \
61 -demosdir /opt/qt-qpa/share/doc/qt/demos \
63 -plugin-sql-{psql,mysql,sqlite,odbc} \
88 -no-separate-debug-info \
98 pkgdesc='A cross-platform application and UI framework'
99 depends=('glib2' 'libgles' 'libegl' 'zlib' 'pcre' 'dbus' 'ca-certificates' 'libtiff' 'libpng' 'libmng'
100 'fontconfig' 'xdg-utils' 'hicolor-icon-theme' 'desktop-file-utils'
103 'sqlite3: SQLite3 driver'
104 'postgresql-libs: PostgreSQL driver'
105 'libmysqlclient: MySQL driver'
106 'unixodbc: ODBC driver')
110 make INSTALL_ROOT=$pkgdir install
112 # install license addition
113 install -D -m644 LGPL_EXCEPTION.txt ${pkgdir}/opt/qt-qpa/share/licenses/qt/LGPL_EXCEPTION.txt
115 # Fix wrong path in pkgconfig files
116 find ${pkgdir}/opt/qt-qpa/lib/pkgconfig -type f -name '*.pc' \
117 -exec perl -pi -e "s, -L${srcdir}/?\S+,,g" {} \;
118 # Fix wrong path in prl files
119 find ${pkgdir}/opt/qt-qpa/lib -type f -name '*.prl' \
120 -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;
123 package_qt-qpa-private-headers(){
124 pkgdesc="Qt private headers for development"
125 depends=("qt-qpa=${pkgver}")
133 install -d ${pkgdir}/opt/qt-qpa/include/${i}/
134 cp -R ${i}/private ${pkgdir}/opt/qt-qpa/include/${i}/
141 pkgdesc='A cross-platform application and UI framework.'