updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / qt-quick3d-git / PKGBUILD
blobd725ff785c7bcc28f12dc9ae70836ae49a53b862
1 # Maintainer: Christian Bühler <christian@cbuehler.de>
2 pkgname=qt-quick3d-git
3 pkgver=20111227
4 pkgrel=1
5 pkgdesc="The Qt Quick module for scripting 3D applications in QML"
6 arch=('i686' 'x86_64')
7 url="http://doc.qt.nokia.com/qt-quick3d-snapshot/"
8 license=('LGPL')
9 depends=('qt')
10 makedepends=('git')
12 _gitroot=git://gitorious.org/qt/quick3d.git
13 _gitname=quick3d
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [[ -d "$_gitname" ]]; then
20     cd "$_gitname" && git pull origin
21     msg "The local files are updated."
22   else
23     git clone "$_gitroot" "$_gitname"
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting build..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
33   qmake CONFIG+=package
34   make
37 package() {
38   cd "$srcdir/$_gitname-build"
39   INSTALL_ROOT="$pkgdir" make install
42 # vim:set ts=2 sw=2 et: