preload-hacks: Some patches to make it work.
[termux-packages] / packages / moria / build.sh
1 TERMUX_PKG_HOMEPAGE=http://remarque.org/~grabiner/moria.html
2 TERMUX_PKG_DESCRIPTION="Rogue-like game with an infinite dungeon"
3 TERMUX_PKG_VERSION=5.6
4 TERMUX_PKG_MAINTAINER="Oliver Schmidhauser @Neo-Oli"
5 # This seems to be a pretty good mirror
6 TERMUX_PKG_SRCURL=https://github.com/HunterZ/umoria/archive/${TERMUX_PKG_VERSION}.tar.gz
7 TERMUX_PKG_SHA256=1ee52ec001539945139b2960e8441f490d2b7f5fe6dce5a070686a178515d182
8 TERMUX_PKG_DEPENDS="ncurses"
9 TERMUX_PKG_BUILD_IN_SRC=yes
10
11 termux_step_pre_configure() {
12 ln -s $TERMUX_PKG_SRCDIR/source/* $TERMUX_PKG_SRCDIR/
13 ln -s $TERMUX_PKG_SRCDIR/unix/* $TERMUX_PKG_SRCDIR/
14 mkdir -p $TERMUX_PREFIX/share/man/man6/
15 cp $TERMUX_PKG_SRCDIR/doc/moria.man $TERMUX_PREFIX/share/man/man6/moria.6
16 }
17 termux_step_create_debscripts () {
18 # Create scores file in a debscript, so an update to the package wouldn't erease any scores
19 echo "mkdir -p $TERMUX_PREFIX/var/games/moria/" > postinst
20 echo "touch $TERMUX_PREFIX/var/games/moria/scores" >> postinst
21 chmod 0755 postinst
22
23 }