updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / vala-vapis-hg / PKGBUILD
blob69b04cfb3f76f2870b0ca3838e4a13075e564f14
1 # Maintainer: Blaž Tomažič <blaz.tomazic@gmail.com>
3 pkgname=vala-vapis-hg
4 pkgver=11
5 pkgrel=1
6 pkgdesc="Unofficial Vala vapi files"
7 arch=('any')
8 url="http://hg.youterm.com/vala-vapis/"
9 license=('unknown')
10 depends=()
11 makedepends=('mercurial' 'git' 'wget')
12 provides=('vala-vapis')
13 conflicts=('vala-vapis')
15 _hgroot="http://hg.youterm.com"
16 _hgrepo="vala-vapis"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to Mercurial server...."
22   if [[ -d "$_hgrepo" ]]; then
23     cd "$_hgrepo"
24     hg pull -u
25     msg "The local files are updated."
26   else
27     hg clone "$_hgroot" "$_hgrepo"
28   fi
30   msg "Mercurial checkout done or server timeout"
31   msg "Starting build..."
33   rm -rf "$srcdir/$_hgrepo-build"
34   cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
35   cd "$srcdir/$_hgrepo-build"
36   
37   make sync
40 package() {
41   cd "$srcdir/$_hgrepo-build"
42   make DESTDIR="$pkgdir/" install
45 # vim:set ts=2 sw=2 et: