45 lines
2.0 KiB
Bash
45 lines
2.0 KiB
Bash
# Template file for 'hyperrogue'
|
|
pkgname=hyperrogue
|
|
version=13.0v
|
|
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="tranzystorekk <tranzystorek.io@protonmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
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=e02a4ada30c9167be9de723a46e83c45b0d2f0f37150dc5fcdef206b21e28303
|
|
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
|
|
}
|