updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / tabula_rasa / PKGBUILD
blob6d1d0502291e30bb952e521ed3a5a849c3392262
1 # Maintainer: Erèbe - Romain Gérard <editeur.algo[at]erebe.eu>
2 pkgname=tabula_rasa
3 pkgver=0.5
4 pkgrel=1
5 pkgdesc="An editor to draw and save algorithm. Use Qt"
6 arch=(any)
7 url="https://github.com/erebe/Tabula_rasa"
8 license=('GPL')
9 depends=('qt>=4.6')
10 makedepends=('git')
11 provides=('tabula_rasa')
12 replaces=('tabula_rasa')
13 install=
14 source=()
15 noextract=()
16 md5sums=() #generate with 'makepkg -g'
17 _gitRoot="git://github.com/erebe/Tabula_rasa.git"
18 _gitName="Tabula_rasa"
20 build() {
21         msg "Downloading source code from git repository."
22         if [[ -d ${_gitName} ]]
23         then
24             cd ${srcdir}/${_gitName}
25             git pull || return 1
26         else
27             git clone ${_gitRoot} || return 1
28             msg "Source code successfully downloaded."
30         fi
31         
32         cd ${srcdir}/${_gitName}
33         chmod +x install.sh
34         ./install.sh
36       }
38 package() {
39     mkdir -p ${pkgdir}/usr/bin/
40     cp ${srcdir}/${_gitName}/tabula_rasa ${pkgdir}/usr/bin/