updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / qt-psql / PKGBUILD
blob7006ceb8eb52e7151033b629429b3ee5d5ff2787
2 pkgname=qt-psql
3 pkgver=4.4.1
4 pkgrel=1
5 pkgdesc="The QPSQL7 - PostgreSQL v6.x and v7.x Driver"
6 arch=('i686')
7 url="http://www.trolltech.com/products/qt"
8 license=('GPL3')
9 options=('!libtool')
10 depends=('qt=4.4.1')
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')
17 build() {
18         unset QMAKESPEC
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       
24         
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
27         make || 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" {} \;