updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / vitabs-git / PKGBUILD
blob37b89c13330d14e9da122753bafc9beb7927f4ce
2 # Contributor: Pawel Stiasny <pawelstiasny@gmail.com>
4 pkgname='vitabs-git'
5 pkgver=20110806
6 pkgrel=1
7 pkgdesc="A guitar tablature editor inspired by Vim"
8 arch=(any)
9 url="https://github.com/PawelStiasny/VITABS"
10 license=('GPL3')
11 depends=('python2' 'python-portmidi')
12 makedepends=('git')
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=()
17 options=(!emptydirs)
18 install=
19 _gitroot="git://github.com/PawelStiasny/VITABS.git"
20 _gitname="VITABS"
22 build() {
23   cd "${srcdir}"
24   msg "Connecting to GIT server...."
26   if [ -d ${_gitname} ] ; then
27     cd ${_gitname} && git pull origin
28     msg "The local files are updated."
29   else
30     git clone ${_gitroot} ${_gitname}
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf "${srcdir}/${_gitname}-build"
37   git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
38   cd "${srcdir}/${_gitname}-build"
41 package() {
42   cd ${srcdir}/${_gitname}-build
43   python2 setup.py install --root="$pkgdir/" --optimize=1