updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pyside-git / PKGBUILD
blob662ffc4e1816ed35ecc0eb2d5a82ca21d719eccb
1 # Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
3 pkgname=pyside-git
4 _pkgname=pyside
5 pkgver=20090819
6 pkgrel=2
7 pkgdesc="The PySide project provides LGPL Qt bindings for Python and related tools for binding generation."
8 arch=('i686' 'x86_64')
9 license=('LGPL')
10 url="http://www.pyside.org"
11 depends=('boostpythongenerator-git')
12 makedepends=('cmake' 'git' 'automoc4')
13 conflicts=()
15 _gitroot='git://gitorious.org/pyside/pyside.git'
16 _gitname='pyside'
18 build() {
19         cd "$srcdir"
21         msg "Connecting to gitorious GIT server...."
23         if [ -d ${srcdir}/$_gitname ] ; then
24                 cd $_gitname
25                 git pull . master
26                 git submodule update --init
27                 msg "The local files are updated."
28         else
29                 git clone $_gitroot $_gitname
30                 cd $_gitname
31                 git submodule update --init
32         fi
34         msg "GIT checkout done."
36         cd ..
37         if [ -d build ] ; then
38                 rm -rf build
39         fi
40         mkdir build
41         cd build
42         cmake ${srcdir}/$_gitname \
43         -DCMAKE_INSTALL_PREFIX=/usr || return 1
44         make || return 1
45         make DESTDIR=$startdir/pkg install