updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / giieditor-git / PKGBUILD
blob957ce0a321751b84b6cf82228a0e9c4ef39c3ff6
1 # Maintainer: Vinícius dos Santos Oliveira <vini.ipsmaker@gmail.com>
2 pkgname=giieditor-git
3 pkgver=20110830
4 pkgrel=1
5 pkgdesc="It's the official animation editor of the BlowThemAll game."
6 arch=('i686' 'x86_64')
7 url="http://code.google.com/p/blowthemall/"
8 license=('GPL3')
9 depends=('qt>=4.7.0')
10 makedepends=('git')
11 options=('strip')
12 source=()
13 md5sums=()
15 _gitroot="https://code.google.com/p/blowthemall.giieditor/"
16 _gitname="giieditor"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   qmake
37   make
40 package() {
41   cd "$pkgdir"
42   mkdir -p usr/bin
43   cp "$srcdir/$_gitname-build/giieditor" usr/bin