summaryrefslogtreecommitdiff
path: root/manualPorts/hyperrogue/Pkgfile
blob: d085d74136a4f1a785e72347b07097f7db87baa5 (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=113a
release=1
source=("http://www.roguetemple.com/z/hyper/hyperrogue${version}-src.tgz")

build() {

    cd "$SRC/$name${version}-src"
    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"
}