5 pkgdesc="The QPSQL7 - PostgreSQL v6.x and v7.x Driver"
7 url="http://www.trolltech.com/products/qt"
11 makedepends=('postgresql')
12 _pkgfqn=qt-x11-opensource-src-$pkgver
13 # svn export svn://anonsvn.kde.org/home/kde/trunk/qt-copy/patches/ qt-copy-patches
14 source=("ftp://ftp.trolltech.com/qt/source/${_pkgfqn}.tar.gz")
15 md5sums=('b09decad252b5181f300135e3122481d')
19 export QT4DIR=$srcdir/$_pkgfqn
20 export PATH=${QT4DIR}/bin:${PATH}
21 export LD_LIBRARY_PATH=${QT4DIR}/lib:${LD_LIBRARY_PATH}
23 cd $srcdir/${_pkgfqn}/src/plugins/sqldrivers/psql
25 #qmake -o Makefile "INCLUDEPATH+=/usr/include/postgresql/" "LIBS+=-L/usr/lib -lpq" psql.pro || return 1
26 qmake -o Makefile "INCLUDEPATH+=/usr/include/libpq++/" "LIBS+=-L/usr/lib -lpq" psql.pro || return 1
28 make INSTALL_ROOT=$pkgdir install || return 1
30 # lots of cleanup and path fixes - thanks to crazy (frugalware)
31 find $pkgdir/usr/lib -type f -name '*prl' -print -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" {} \;