# Contributor: Sebastian Schmitt pkgname=qbs-git conflicts=('qbs') replaces=('qbs') pkgver=20121211 pkgrel=1 pkgdesc="Qt Build system" arch=("i686" "x86_64") url="http://labs.qt.nokia.com/2012/02/15/introducing-qbs/" license=('GPL2' 'LGPL2') depends=('qt') makedepends=('qt' 'docbook-xsl' 'git') optdepends=("dot: for build graph") _gitroot="git://gitorious.org/qt-labs/qbs.git" _gitname="qbs" source=() md5sums=() build() { cd ${srcdir} msg "Connecting to GIT server...." if [ -d ${_gitname}/.git ] ; then ( cd ${_gitname} # Change remote url to anongit if [ -z $( git branch -v | grep anongit ) ] ; then git remote set-url origin ${_gitroot} fi git pull origin msg "The local files are updated." ) else git clone ${_gitroot} ${_gitname} fi msg "GIT checkout done or server timeout" msg "Starting make..." cd ${_gitname} qmake -r qbs.pro make make docs } package(){ cd ${srcdir}/${_gitname} make INSTALL_ROOT="${pkgdir}" install ## One of libraries for strigi casuses problems with m4v files #rm -rf ${pkgdir}/usr/lib/strigi }