termux-packages/packages/myman/build.sh

33 lines
1.1 KiB
Bash
Raw Normal View History

2020-05-09 18:30:09 +02:00
TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/myman/
TERMUX_PKG_DESCRIPTION="Video game for color and monochrome text terminals in the genre of Namco's Pac-Man"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91"
TERMUX_PKG_VERSION=0.7.1
TERMUX_PKG_REVISION=1
2020-05-09 18:30:09 +02:00
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/myman/files/myman-cvs/myman-cvs-2009-10-30/myman-cvs-2009-10-30.tar.gz
TERMUX_PKG_SHA256=253e22f26dc95c63388bc4cb81075a05f77f7709d1d64ed9fde7aae38a7fc962
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_HOSTBUILD=true
# myman is installed twice for no reason
TERMUX_PKG_RM_AFTER_INSTALL="bin/myman-$TERMUX_PKG_VERSION"
termux_step_extract_package() {
cd $TERMUX_PKG_CACHEDIR
tar -xf myman-cvs-2009-10-30.tar.gz
mkdir -p $TERMUX_PKG_SRCDIR
cd $TERMUX_PKG_SRCDIR
cvs -d$TERMUX_PKG_CACHEDIR/myman-cvs co -P myman
mv myman/* .
}
termux_step_host_build() {
$TERMUX_PKG_SRCDIR/configure
make obj/s1game
}
termux_step_post_configure() {
mkdir -p $TERMUX_PKG_BUILDDIR/obj
cp $TERMUX_PKG_HOSTBUILD_DIR/obj/s1game $TERMUX_PKG_BUILDDIR/obj/
touch -d "next hour" $TERMUX_PKG_BUILDDIR/obj/s1game
}