1 # Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
5 pkgdesc="Port of the classic DOS game Tyrian"
6 url="http://code.google.com/p/opentyrian"
10 makedepends=(mercurial)
11 source=("http://sites.google.com/a/camanis.net/opentyrian/tyrian/tyrian21.zip")
12 provides=(tyrian opentyrian)
13 conflicts=(opentyrian)
14 replaces=(opentyrian-svn)
16 _hgroot="http://opentyrian.googlecode.com/hg/"
22 msg "Connecting to googlecode.com Mercurial server...."
23 if [ -d $_hgrepo ]; then
24 (cd $_hgrepo && hg pull -u)
26 hg clone $_hgroot $_hgrepo
30 cp -r $_hgrepo $_hgrepo-build
33 msg "Starting build process."
35 make release || return 1
39 cd "$srcdir/$_hgrepo-build"
41 install -D opentyrian $pkgdir/usr/bin/opentyrian
42 install -D -m644 linux/man/opentyrian.6 "$pkgdir/usr/share/man/man6/opentyrian.6"
43 install -D -m644 linux/opentyrian.desktop "$pkgdir/usr/share/applications/opentyrian.desktop"
44 install -D -m644 linux/icons/tyrian-128.png "$pkgdir/usr/share/pixmaps/opentyrian.png"
45 for _x in 22 24 32 48 128; do
46 install -D -m644 "linux/icons/tyrian-$_x.png" "$pkgdir/usr/share/icons/hicolor/${_x}x${_x}/apps/opentyrian.png"
50 mkdir -p "$pkgdir/usr/share/opentyrian/data"
51 for _x in *.dat *.lvl *.shp *.snd demo.* music.mus tyrend.anm tyrian.{cdt,hdt,pic} tshp2.pcx; do
52 install -m644 "$_x" "$pkgdir/usr/share/opentyrian/data/"
56 md5sums=('2a3b206a6de25ed4b771af073f8ca904')