Commit | Line | Data |
---|---|---|
a793fe64 | 1 | TERMUX_PKG_HOMEPAGE=http://remarque.org/~grabiner/moria.html |
2b97988c | 2 | TERMUX_PKG_DESCRIPTION="Rogue-like game with an infinite dungeon" |
a793fe64 OS |
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_FOLDERNAME=umoria-$TERMUX_PKG_VERSION | |
9 | TERMUX_PKG_DEPENDS="ncurses" | |
10 | TERMUX_PKG_BUILD_IN_SRC=yes | |
11 | ||
12 | termux_step_pre_configure() { | |
13 | ln -s $TERMUX_PKG_SRCDIR/source/* $TERMUX_PKG_SRCDIR/ | |
14 | ln -s $TERMUX_PKG_SRCDIR/unix/* $TERMUX_PKG_SRCDIR/ | |
15 | mkdir -p $TERMUX_PREFIX/share/man/man6/ | |
16 | cp $TERMUX_PKG_SRCDIR/doc/moria.man $TERMUX_PREFIX/share/man/man6/moria.6 | |
17 | } | |
18 | termux_step_create_debscripts () { | |
19 | # Create scores file in a debscript, so an update to the package wouldn't erease any scores | |
20 | echo "mkdir -p $TERMUX_PREFIX/var/games/moria/" > postinst | |
21 | echo "touch $TERMUX_PREFIX/var/games/moria/scores" >> postinst | |
22 | chmod 0755 postinst | |
23 | ||
24 | } |