-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
44 lines (39 loc) · 2.07 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Template file for 'hyperrogue'
pkgname=hyperrogue
version=13.0i
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=26b90bfbae3c441613e86cbe0261f5c037218dafb7222a0fd9c7d301c6ff5258
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
}