ncmpcpp: Update from 0.8.1 to 0.8.2
[termux-packages] / packages / moria / build.sh
CommitLineData
a793fe64 1TERMUX_PKG_HOMEPAGE=http://remarque.org/~grabiner/moria.html
2b97988c 2TERMUX_PKG_DESCRIPTION="Rogue-like game with an infinite dungeon"
a793fe64
OS
3TERMUX_PKG_VERSION=5.6
4TERMUX_PKG_MAINTAINER="Oliver Schmidhauser @Neo-Oli"
5# This seems to be a pretty good mirror
6TERMUX_PKG_SRCURL=https://github.com/HunterZ/umoria/archive/${TERMUX_PKG_VERSION}.tar.gz
7TERMUX_PKG_SHA256=1ee52ec001539945139b2960e8441f490d2b7f5fe6dce5a070686a178515d182
a793fe64
OS
8TERMUX_PKG_DEPENDS="ncurses"
9TERMUX_PKG_BUILD_IN_SRC=yes
10
11termux_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}
17termux_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}