blob: 76046f480650a83f0ec07c25e0878aff7b202e8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Kyle Keen <keenerd@gmail.com>
pkgname=hyperrogue
pkgver=11.2.x
_pkgver=${pkgver//./}
pkgrel=1
pkgdesc="You are a lone outsider in a strange, non-Euclidean hyperbolic world. Optional music."
arch=('i686' 'pentium4' 'x86_64')
url="http://www.roguetemple.com/z/hyper.php"
license=('GPL2')
depends=('sdl_gfx' 'sdl_ttf' 'sdl_mixer' 'mesa' 'ttf-dejavu')
makedepends=('glu')
# set to "" for none or "low" or "full"
_music=""
source=("http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-src.tgz")
sha512sums=('24eec109c0ae52eb6f0f1dbd893238acde44ab994eeb71010d4a9e126e73e1538a2d2fbf2b1fdaf31d7ddae6cd3876769b0c47b07025c90c7326e7e7ff486b2b')
#echo http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-{lq,win}.zip
if [[ "$_music" == "low" ]]; then
source+=("http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-lq.zip")
md5sums+=('46a908216afefd6cb199442af7a33d52')
fi
if [[ "$_music" == "full" ]]; then
source+=("http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-win.zip")
md5sums+=('8b928f7108ae068fe521e3d27f48c357')
fi
prepare() {
cd "$srcdir/$pkgname${_pkgver}-src"
sed -i 's|TTF_OpenFont.*;|TTF_OpenFont("/usr/share/fonts/TTF/DejaVuSans-Bold.ttf", siz);|' basegraph.cpp
#sed -i 's|<SDL.h>|"SDL.h"|' /usr/include/SDL/SDL_gfxPrimitives.h # todo: confirm bug and open
sed -i 's|-c hyper.cpp|& -I/usr/include/SDL/|' Makefile # remove when above bug is fixed
sed -i 's|savepng.c|savepng.cpp|' Makefile
sed -i 's|-Werror||' Makefile
}
build() {
cd "$srcdir/$pkgname${_pkgver}-src"
make
}
package() {
cd "$srcdir/$pkgname${_pkgver}-src"
install -Dm755 hyperrogue "$pkgdir/usr/bin/hyperrogue"
if [[ -z "$_music" ]]; then
return
fi
install -Dm644 hyperrogue-music.txt "$pkgdir/usr/share/hyperrogue/hyperrogue-music.txt"
cd "$srcdir/$pkgname${_pkgver}"
cp *.ogg "$pkgdir/usr/share/hyperrogue/"
}
|