updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / potion-git / PKGBUILD
blob8c09c235f245a4bf16ac47bf9053bbbdd57a18ee
1 # Contributor: mr_chapendi <mr.chapendi@gmail.com>
2 pkgname=potion-git
3 pkgver=20100104
4 pkgrel=1
5 pkgdesc="Potion is an object- and mixin-oriented (traits) language."
6 arch=('i686' 'x86_64')
7 url="http://github.com/fogus/potion/"
8 depends=()
9 makedepends=('ragel')
10 license=('MIT')
11 source=()
12 md5sums=()
14 _gitroot="git://github.com/fogus/potion.git"
15 _gitname="potion"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to the potion git repository..."
21   if [ -d "$srcdir/$_gitname" ] ; then
22   cd $_gitname && git pull origin
23   msg "The local files are updated."
24   else
25   git clone $_gitroot
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   cd $srcdir
33   rm -rf $_gitname-build
34   git clone $_gitname $_gitname-build
35   cd $_gitname-build
37   # It will not build correctly in parallel.
38   make potion -j1 || return 1
40   install -D potion $pkgdir/usr/bin/potion