updated on Mon Jan 23 04:00:55 UTC 2012
[aur-mirror.git] / mypaint-git / PKGBUILD
blob83368f9d1cebc49ca9c4ac908798eb03cc044914
1 # Maintainer: Jon Nordby <jononor@gmail.com>
2 # Contributor: mosra <mosra@centrum.cz>
4 pkgname=mypaint-git
5 pkgver=20110929
6 pkgrel=1
7 pkgdesc="A fast and easy painting application for digital painters, with brush dynamics"
8 arch=('i686' 'x86_64')
9 url="http://mypaint.intilinux.com/"
10 license=('GPL')
11 depends=('pygtk' 'python2-numpy')
12 makedepends=('scons>=0.97' 'swig>=1.3.39' 'git')
13 conflicts=('mypaint')
14 provides=('mypaint')
15 [ "$CARCH" = "i686" ] && optdepends=('psyco: improved performance')
16 install=('mypaint-git.install')
18 _gitroot="git://gitorious.org/mypaint/mypaint.git"
19 _gitname="mypaint"
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
39   #BUILD
40   scons
41   scons prefix="$pkgdir"/usr install