45 lines
2.1 KiB
Bash
45 lines
2.1 KiB
Bash
# Template file for 'hyperrogue'
|
|
pkgname=hyperrogue
|
|
version=12.1i
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
makedepends="glew-devel libpng-devel SDL-devel SDL_gfx-devel SDL_mixer-devel
|
|
SDL_ttf-devel zlib-devel"
|
|
depends="dejavu-fonts-ttf"
|
|
short_desc="SDL rogue-like in a non-euclidean world"
|
|
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
|
|
license="GPL-2.0-or-later, CC-BY-SA-4.0, CC-BY-SA-3.0, CC-BY-3.0, Public Domain"
|
|
homepage="https://www.roguetemple.com/z/hyper/"
|
|
changelog="https://raw.githubusercontent.com/zenorogue/hyperrogue/master/changelog.txt"
|
|
distfiles="https://github.com/zenorogue/hyperrogue/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=8373264a1bbb9a77a1a71b6e2a544199ef3014f1fa7a661aab2bc6d8ba689817
|
|
nocross="Generates code from build output that must run on host"
|
|
|
|
# SDL_gfx-devel headers require that SDL.h be under the header search paths,
|
|
# which are not set correctly by upstream.
|
|
CXXFLAGS+=" -I/usr/include/SDL -DHYPERPATH='\"/usr/share/hyperrogue/\"' -DHYPERFONTPATH='\"/usr/share/fonts/TTF/\"'"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64*) ;;
|
|
ppc*) nodebug=yes;; # build runs out of memory
|
|
esac
|
|
|
|
export HYPERROGUE_USE_GLEW=1
|
|
export HYPERROGUE_USE_PNG=1
|
|
|
|
do_install() {
|
|
vbin hyperrogue
|
|
vdoc README.md
|
|
vinstall contrib/hyperrogue.desktop 644 usr/share/applications
|
|
vinstall hyperrogue-music.txt 644 usr/share/hyperrogue
|
|
vinstall hyperroid/app/src/main/res/drawable-ldpi/icon.png 644 usr/share/icons/hicolor/36x36/apps hyperrogue.png
|
|
vinstall hyperroid/app/src/main/res/drawable-mdpi/icon.png 644 usr/share/icons/hicolor/48x48/apps hyperrogue.png
|
|
vinstall hyperroid/app/src/main/res/drawable-hdpi/icon.png 644 usr/share/icons/hicolor/72x72/apps hyperrogue.png
|
|
vinstall hyperroid/app/src/main/res/drawable-xhdpi/icon.png 644 usr/share/icons/hicolor/96x96/apps hyperrogue.png
|
|
vinstall hyperroid/app/src/main/res/drawable-xxhdpi/icon.png 644 usr/share/icons/hicolor/144x144/apps hyperrogue.png
|
|
vinstall hyperroid/app/src/main/res/drawable-xxxhdpi/icon.png 644 usr/share/icons/hicolor/192x192/apps hyperrogue.png
|
|
|
|
vcopy music usr/share/hyperrogue
|
|
vcopy sounds usr/share/hyperrogue
|
|
}
|