updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / boostpythongenerator-git / PKGBUILD
blob89c05e81b1472ac669e48c73869c8f68f49617a6
1 # Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
3 pkgname=boostpythongenerator-git
4 _pkgname=boostpythongenerator
5 pkgver=20090819
6 pkgrel=1
7 pkgdesc="Python binding generator based on Boost.Python"
8 arch=('i686' 'x86_64')
9 license=('LGPL')
10 url="http://www.pyside.org"
11 depends=('apiextractor-git' 'python' 'qt')
12 makedepends=('cmake' 'git' 'automoc4')
13 conflicts=()
15 _gitroot='git://gitorious.org/pyside/boostpythongenerator.git'
16 _gitname='boostpythongenerator'
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