1 # Maintainer: Anton Shestakov <engored*ya.ru>
3 pkgname=doom2d-rembo-hg
6 pkgdesc='a Linux port of Doom2D game, free DOS two-dimensional arcade created by Russian video game company "Prikol Software" in early 1996 being impressed by original DOOM game by id Software.'
8 url='http://code.google.com/p/doom2d-rembo/'
10 depends=('sdl' 'sdl_mixer')
11 makedepends=('cmake' 'mercurial')
12 provides=(doom2d-rembo)
13 conflicts=(doom2d-rembo)
15 _hgroot='https://code.google.com/p'
16 _hgrepo='doom2d-rembo'
20 msg "Connecting to Mercurial server...."
22 if [ -d $_hgrepo ] ; then
25 msg "The local files are updated."
27 hg clone $_hgroot $_hgrepo
30 msg "Mercurial checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_hgrepo-build"
34 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
35 cd "$srcdir/$_hgrepo-build"
42 cd "$srcdir/$_hgrepo-build"
44 install -D -m755 "doom2d" "$pkgdir/usr/bin/doom2d"
45 install -m755 -d "$pkgdir/usr/share/doom2d-rembo/"
46 install -m644 -t "$pkgdir/usr/share/doom2d-rembo/" src/*.wad
47 install -m644 -t "$pkgdir/usr/share/doom2d-rembo/" src/default.cfg
49 install -m755 -d "$pkgdir/usr/share/doom2d-rembo/music/"
50 install -m644 -t "$pkgdir/usr/share/doom2d-rembo/music/" music/*