# Maintainer: Erich Eckner # Contributor: Kyle Keen pkgname=hyperrogue pkgver=13.0v 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') _pinned_dependencies=( 'gcc-libs=14.2.1+r134+gab884fffe3fc' 'glibc>=2.31' 'libglvnd=1.7.0' 'sdl12-compat=1.2.68' 'sdl_gfx=2.0.27' 'zlib=1:1.3.1' ) 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=('03da6ee5c837a1f97b4c25c73556d838a5fa83ea0bebe19af6063d6a6c2b5812cd0c6b4da8e66e1912f5a163d7d4c231e9a7006b2005f10d6a77affd58dc68fa') 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" }