# Maintainer: Erich Eckner # Contributor: Kyle Keen pkgname=hyperrogue pkgver=13.0i pkgrel=2 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') _pinned_dependencies=( 'gcc-libs=14.1.1+r309+gbb34b7eda1f' 'glibc>=2.31' 'libGL.so=1' 'libz.so=1' 'sdl12-compat=1.2.68' 'sdl_gfx=2.0.27' ) depends=('sdl_ttf' 'sdl_mixer' 'mesa' 'ttf-dejavu' "${_pinned_dependencies[@]}") makedepends=('glu') source=("https://github.com/zenorogue/hyperrogue/archive/refs/tags/v${pkgver}.tar.gz") sha512sums=('ca565ae800df73811d6491af8c4407993cda49171758b4d1bbf1c6428fe3a588259532651cc08f9aa83f4cf5becfc578dfa2780ccf3d8f874849f14a5561b4a9') prepare() { cd "$srcdir/$pkgname-${pkgver}" sed -i 's|TTF_OpenFont.*;|TTF_OpenFont("/usr/share/fonts/TTF/DejaVuSans-Bold.ttf", siz);|' basegraph.cpp #sed -i 's||"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}" make } package() { cd "$srcdir/$pkgname-${pkgver}" install -Dm755 hyperrogue "$pkgdir/usr/bin/hyperrogue" }