updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / craftd-git / PKGBUILD
blobcfb4be08ec43b3ddd7e8ad4fc9e303c07b37173d
1 # Maintainer: Mike Swanson <mikeonthecomputer@gmail.com>
3 pkgname=craftd-git
4 pkgver=20111024
5 pkgrel=1
6 pkgdesc="A third-party implementation of the Minecraft SMP server protocol."
7 arch=('i686' 'x86_64')
8 url="http://mc.kev009.com/craftd"
9 license=('GPL')
10 depends=('libevent' 'libconfig' 'pcre')
11 makedepends=('git')
13 _gitroot=git://github.com/craftd/craftd.git
14 _gitname=craftd
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [[ -d "$_gitname" ]]; then
21     cd "$_gitname" && git pull origin
22     msg "The local files are updated."
23   else
24     git clone "$_gitroot" "$_gitname"
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting build..."
30   cd "$srcdir/$_gitname"
32   ./autogen.sh
33   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
34   make
37 package() {
38   cd "$srcdir/$_gitname"
39   make DESTDIR="$pkgdir/" install
42 # vim:set ts=2 sw=2 et: