1 # Maintainer: Harley Laue <losinggeneration@gmail.com>
5 pkgdesc="A C/C++ library for creating hardware accelerated 2D games."
7 url="http://code.google.com/p/hge-unix/"
9 depends=(sdl openal libpng libjpeg libvorbis)
10 makedepends=('mercurial')
12 conflicts=('hge-unix')
14 _hgroot=https://code.google.com/p
19 msg "Connecting to Mercurial server...."
21 if [[ -d "$_hgrepo" ]]; then
24 msg "The local files are updated."
26 hg clone "$_hgroot" "$_hgrepo"
29 msg "Mercurial checkout done or server timeout"
30 msg "Starting build..."
32 [ -d "$srcdir/$_hgrepo/build" ] && rm -rf "$srcdir/$_hgrepo/build"
33 mkdir "$srcdir/$_hgrepo/build"
34 cd "$srcdir/$_hgrepo/build"
36 cmake -DCMAKE_INSTALL_PREFIX=/usr ..
41 cd "$srcdir/$_hgrepo/build"
42 make DESTDIR="$pkgdir/" install
43 install -D -m644 "$srcdir/$_hgrepo/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
46 # vim:set ts=2 sw=2 et: