blob: 55ac74dafc4222981a07f59517e3516c17ba6778 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Description: You are a lone outsider in a strange, non-Euclidean hyperbolic world.
# URL: http://www.roguetemple.com/z/hyper.php
# Maintainer: Erich Eckner, crux at eckner dot net
# Depends on: mesa3d ttf-dejavu glu sdl_gfx sdl_ttf sdl_mixer
name=hyperrogue
version=12.1d
release=1
source=("https://github.com/zenorogue/hyperrogue/archive/refs/tags/v${version}.tar.gz")
build() {
cd "$SRC/$name-${version}"
sed -i 's|TTF_OpenFont.*;|TTF_OpenFont("/usr/share/fonts/X11/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|-Werror||' Makefile
make
install -Dm755 hyperrogue "$PKG/usr/bin/hyperrogue"
}
|