1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
7 # for more information on packaging from GIT sources.
9 # Maintainer: Your Name <youremail@domain.com>
13 pkgdesc="metarv provides weather conditions from METAR codes, written in vala."
15 url="http://github.com/b4283/metarv"
18 makedepends=('git' 'vala')
21 md5sums=() #generate with 'makepkg -g'
23 _gitroot="git://github.com/b4283/metarv.git"
28 msg "Connecting to GIT server...."
30 if [ -d $_gitname ] ; then
31 cd $_gitname && git pull origin
32 msg "The local files are updated."
34 git clone $_gitroot $_gitname
37 msg "GIT checkout done or server timeout"
38 msg "Starting make..."
40 rm -rf "$srcdir/$_gitname-build"
41 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42 cd "$srcdir/$_gitname-build"
52 cd "$srcdir/$_gitname-build"
53 make DESTDIR="$pkgdir/" install