2020-12-30 19:37:37 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.dettus.net/dMagnetic
|
|
|
|
TERMUX_PKG_DESCRIPTION="Interpreter for classic text adventure games and interactive fiction"
|
|
|
|
TERMUX_PKG_LICENSE="BSD 2-Clause"
|
2021-03-01 22:16:06 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-07-24 12:18:15 +02:00
|
|
|
TERMUX_PKG_VERSION=0.32
|
2020-12-30 19:37:37 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://www.dettus.net/dMagnetic/dMagnetic_${TERMUX_PKG_VERSION}.tar.bz2
|
2021-07-24 12:18:15 +02:00
|
|
|
TERMUX_PKG_SHA256=9671b863cbb126e122923fa974806ff0e998af471c98e878c1392c20a3606206
|
2020-12-30 19:37:37 +01:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2021-02-11 08:27:07 +01:00
|
|
|
TERMUX_PKG_HOSTBUILD=true
|
|
|
|
|
|
|
|
termux_step_host_build() {
|
|
|
|
cd $TERMUX_PKG_BUILDDIR
|
|
|
|
make -j $TERMUX_MAKE_PROCESSES dMagnetic
|
2021-02-11 08:46:36 +01:00
|
|
|
mv dMagnetic $TERMUX_PKG_HOSTBUILD_DIR/
|
2021-02-11 08:27:07 +01:00
|
|
|
make clean
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_configure() {
|
|
|
|
# find our host-built dMagnetic
|
|
|
|
export PATH=$TERMUX_PKG_HOSTBUILD_DIR:$PATH
|
|
|
|
}
|
2021-07-10 22:32:51 +02:00
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
sed "s%@TERMUX_PREFIX@%$TERMUX_PREFIX%g" \
|
|
|
|
$TERMUX_PKG_BUILDER_DIR/magnetic-scrolls.in \
|
|
|
|
> $TERMUX_PREFIX/bin/magnetic-scrolls
|
|
|
|
chmod 700 $TERMUX_PREFIX/bin/magnetic-scrolls
|
|
|
|
}
|