summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-28 09:12:43 +0100
committerErich Eckner <git@eckner.net>2019-01-28 09:12:43 +0100
commit7927d9bbf189d9a0e29c993ff854f7aa00cb138a (patch)
tree2dc83fb69106686a2d8c242f44bf6e739043b18e
parent76e5c22cebef6aff77e3a61ba32d20f589325802 (diff)
downloadarchlinuxewe-7927d9bbf189d9a0e29c993ff854f7aa00cb138a.tar.xz
hyperrogue 10.4z-1 -> 10.5d-1
-rw-r--r--hyperrogue/PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/hyperrogue/PKGBUILD b/hyperrogue/PKGBUILD
new file mode 100644
index 000000000..fa53208a5
--- /dev/null
+++ b/hyperrogue/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Kyle Keen <keenerd@gmail.com>
+pkgname=hyperrogue
+pkgver=10.5d
+_pkgver=${pkgver/./}
+pkgrel=1
+pkgdesc="You are a lone outsider in a strange, non-Euclidean hyperbolic world. Optional music."
+arch=('i686' 'x86_64')
+url="http://www.roguetemple.com/z/hyper.php"
+license=('GPL2')
+depends=('sdl_gfx' 'sdl_ttf' 'sdl_mixer' 'mesa' 'ttf-dejavu')
+makedepends=('glu')
+
+# set to "" for none or "low" or "full"
+_music=""
+
+source=("http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-src.tgz")
+sha512sums=('e61fb208659b0aa39d012aa46694b349752e5cdc1e8661cec83b8cf4c16be300b230b97ba3921219cca2b30265da7a665f11953e199058a0da2c885a058b2c3c')
+#echo http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-{lq,win}.zip
+if [[ "$_music" == "low" ]]; then
+ source+=("http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-lq.zip")
+ md5sums+=('46a908216afefd6cb199442af7a33d52')
+fi
+if [[ "$_music" == "full" ]]; then
+ source+=("http://www.roguetemple.com/z/hyper/hyperrogue${_pkgver}-win.zip")
+ md5sums+=('8b928f7108ae068fe521e3d27f48c357')
+fi
+
+prepare() {
+ cd "$srcdir/$pkgname${_pkgver}-src"
+ sed -i 's|TTF_OpenFont.*;|TTF_OpenFont("/usr/share/fonts/TTF/DejaVuSans-Bold.ttf", siz);|' basegraph.cpp
+ #sed -i 's|<SDL.h>|"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}-src"
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname${_pkgver}-src"
+ install -Dm755 hyperrogue "$pkgdir/usr/bin/hyperrogue"
+ if [[ -z "$_music" ]]; then
+ return
+ fi
+ install -Dm644 hyperrogue-music.txt "$pkgdir/usr/share/hyperrogue/hyperrogue-music.txt"
+ cd "$srcdir/$pkgname${_pkgver}"
+ cp *.ogg "$pkgdir/usr/share/hyperrogue/"
+}
+