updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / qml-box2d / PKGBUILD
blob2b927c14129dd6c5ee63fc53647bca90a03d8e74
1 # Maintainer: Mailson Lira <mailson@gmail.com>
3 pkgname=qml-box2d
4 pkgver=20110421
5 pkgrel=1
6 pkgdesc="QML bindings to the Box2D physics library"
7 arch=('i686' 'x86_64')
8 url="https://gitorious.org/qml-box2d"
9 license=('LGPL')
10 depends=('qt>=4.7')
11 makedepends=('qt' 'git')
12 source=()
13 md5sums=()
15 _gitroot="https://git.gitorious.org/qml-box2d/qml-box2d.git"
16 _gitname=qml-box2d
18 build() {
19         cd "${srcdir}"
20         
21         if [ ! -d "${srcdir}/${_gitname}" ]; then
22                 git clone ${_gitroot}
23         else
24                 cd ${_gitname} && git pull origin
25         fi
26         
27         msg "GIT checkout done."
29         cd "${srcdir}"
30         cp -rf "${_gitname}" "${_gitname}-build"
31         cd "${_gitname}-build"
32         
33         qmake
34         make
37 package() {
38         cd "${srcdir}/${_gitname}-build"
39         
40         make INSTALL_ROOT="${pkgdir}" install