updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / minetest-hg / PKGBUILD
blob841c9c87d0725db3d3af5cc97c2212b7fdd25b5a
1 _name=minetest
2 name=${_name}
3 pkgname=${_name}-hg
4 pkgver=1024
5 pkgrel=1
6 pkgdesc="An Infiniminer/Minecraft inspired game, mercurial version."
7 arch=('i686' 'x86_64')
8 url="http://celeron.55.lt/~celeron55/minetest/"
9 license=('GPL')
10 makedepends=('mercurial' 'cmake' 'irrlicht' 'libx11' 'mesa' 'libjpeg' 'bzip2' 'libpng' 'zlib')
11 depends=('libx11' 'libjpeg' 'bzip2' 'libpng' 'zlib')
12 conflicts=('minetest')
13 md5sums=() #generate with 'makepkg -g'
15 _hgrepo="$_name"
16 _hgroot="https://bitbucket.org/celeron55"
19 build() {
20         cd $srcdir
21         msg "Connecting to hg server..."
22         if [[ -d "$_hgrepo/.hg" ]]; then
23                 msg "pull"
24                 ( cd $_hgrepo && hg pull -u )
25         else
26                 msg "clone"
27                 hg clone "${_hgroot}/${_hgrepo}"
28         fi
29         cd "${_hgrepo}"
30         cmake . -DCMAKE_INSTALL_PREFIX=/usr
31         make DESTDIR=${pkgdir} install