1 # Maintainer: Jontahan Liu <net147@gmail.com>
5 pkgdesc='A cross-platform application and UI framework'
7 url='http://qt.nokia.com/'
8 license=('GPL3' 'LGPL')
9 depends=('libpng' 'fontconfig' 'libtiff' 'libmng' 'sqlite3' 'xdg-utils' 'ca-certificates'
10 'hicolor-icon-theme' 'alsa-lib' 'glib2' 'dbus' 'libxrender' 'libgl' 'libsm')
11 optdepends=('postgresql-libs' 'libmysqlclient' 'unixodbc')
12 makedepends=('mesa' 'inputproto' 'postgresql-libs' 'mysql' 'unixodbc' 'cups' 'libxfixes' 'gtk2')
14 _pkgfqn="qt-everywhere-opensource-src-${pkgver}"
15 source=("ftp://ftp.qt.nokia.com/qt/source/${_pkgfqn}.tar.gz"
16 'ca-certificates.patch')
17 md5sums=('5c69f16d452b0bb3d44bc3c10556c072'
18 'd5c4cad7af93f1d736d4569a207bd739')
22 export QT4DIR="$srcdir/$_pkgfqn"
23 export PATH="${QT4DIR}/bin:${PATH}"
24 export LD_LIBRARY_PATH="${QT4DIR}/lib:${LD_LIBRARY_PATH}"
28 # see http://cvs.fedoraproject.org/viewvc/rpms/qt/devel/
29 # use system ssl cert bundle
30 patch -p1 -i "$srcdir/ca-certificates.patch"
32 sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
33 sed -i "/^QMAKE_RPATH/s| -Wl,-rpath,||g" mkspecs/common/g++.conf
34 sed -i "/^QMAKE_LFLAGS\s/s|+=|+= $LDFLAGS|g" mkspecs/common/g++.conf
36 ./configure -confirm-license -opensource \
39 -plugin-sql-{psql,mysql,sqlite,odbc} \
61 -no-separate-debug-info \
72 make INSTALL_ROOT="$pkgdir" install
74 # install license addition
75 install -D -m644 LGPL_EXCEPTION.txt "${pkgdir}/usr/share/licenses/$pkgname/LGPL_EXCEPTION.txt"
77 # Fix wrong path in pkgconfig files
78 find "${pkgdir}/opt/$pkgname/lib/pkgconfig" -type f -name '*.pc' \
79 -exec perl -pi -e "s, -L${srcdir}/?\S+,,g" {} \;
80 # Remove build dir from prl files
81 find "${pkgdir}/opt/$pkgname/lib" -type f -name '*.prl' \
82 -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
85 # vim:set ts=2 sw=2 et: