updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / fgms-git-stable / PKGBUILD
blob45bb8086c06b5ec2b7e6c54e689912ba6153d107
1 # Maintainer: Nicola Bignami
3 pkgname=fgms-git-stable
4 pkgver=20111101
5 pkgrel=1
6 pkgdesc="FlightGear Multiplayer Server - stable branch from GIT"
7 arch=('i686' 'x86_64')
8 url="http://fgms.sourceforge.net"
9 license=('GPL')
10 depends=()
11 makedepends=('git' 'autoconf' 'automake' 'make' 'libtool' 'gcc')
12 provides=('fgms')
13 conflicts=('fgms')
14 install='fgms.install'
16 _gitroot="http://git.gitorious.org/fgms/fgms-0-x.git"
17 _gitname="fgms-0-x"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   cd "$srcdir/$_gitname"
35   ./autogen.sh
36   ./configure --prefix=/usr --sysconfdir=/etc
37   make
40 package() {
41   cd "$srcdir/$_gitname"
42   make DESTDIR="$pkgdir" install