Add moria package
[termux-packages] / packages / moria / build.sh
CommitLineData
a793fe64
OS
1TERMUX_PKG_HOMEPAGE=http://remarque.org/~grabiner/moria.html
2TERMUX_PKG_DESCRIPTION="http://remarque.org/~grabiner/moria.html"
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
8TERMUX_PKG_FOLDERNAME=umoria-$TERMUX_PKG_VERSION
9TERMUX_PKG_DEPENDS="ncurses"
10TERMUX_PKG_BUILD_IN_SRC=yes
11
12termux_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}
18termux_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}