1 # Contributor: sauron <sauron@citadelspb.com>
2 # Contributor: Radu Andries <admiral0@tuxfamily.org>
3 # Contributor: Yuanhao Li <jay_21cn at hotmail.com>
6 pkgname=qt-kinetic-bauhaus-git
9 pkgdesc="The QT gui toolkit. Development project kinetic, branch Bauhaus, with new animation framework, amazing declarative UI and more new features. Installs in /opt"
10 arch=('i686' 'x86_64')
11 url="http://qt.gitorious.org/+qt-kinetic-developers/qt/kinetic"
13 options=('!libtool' '!docs')
14 depends=('libpng' 'libxi' 'mesa' 'fontconfig' 'libxrandr' 'glib2' 'libtiff' 'libmng' 'sqlite3' 'dbus' 'libxcursor' 'libxinerama')
15 optdepends=('postgresql-libs' 'libmysqlclient' 'unixodbc')
16 makedepends=('inputproto' 'postgresql-libs' 'mysql' 'unixodbc' 'libxfixes')
17 provides=('qt-kinetic')
20 _gitroot="git://gitorious.org/+qt-kinetic-developers/qt/kinetic.git"
21 _gitname="kinetic-bauhaus"
24 msg "Connecting to gitorious GIT server...."
26 if [ -d ${srcdir}/kinetic ] ; then
28 #Comment next cmd if you modify the source
31 git checkout origin/$_gitname
32 msg "The local files are updated."
35 git checkout origin/$_gitname
38 export QT4DIR=$srcdir/kinetic
39 export PATH=${QT4DIR}/bin:${PATH}
40 export LD_LIBRARY_PATH=${QT4DIR}/lib:${LD_LIBRARY_PATH}
44 sed -i 's|-cp -P -f|-cp -L -f|' qmake/Makefile.unix
45 sed -i "s|-O2|$CXXFLAGS|" mkspecs/common/g++.conf
47 sed -e '/pg_config --libs/d' -i configure
48 # do not compile demos, examples and docs
49 sed -i 's|CFG_NOBUILD_PARTS=""|CFG_NOBUILD_PARTS="demos examples docs"|' configure
51 ./configure -prefix /opt/qt-kinetic-bauhaus-git || return 1
53 make INSTALL_ROOT=$pkgdir install || return 1