0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 00:10:52 +00:00
Henrik Grimler 9e90d1b31a
tree-wide: rename TERMUX_MAKE_PROCESSES to TERMUX_PKG_MAKE_PROCESSES
Some packages have issues with parallel builds and need to set
TERMUX_MAKE_PROCESSES=1. All other build variables that package
recipes set are prefixed with TERMUX_PKG, use that for MAKE_PROCESSES
as well for consistency.

%ci:no-build
2024-06-16 11:16:22 +02:00

30 lines
966 B
Bash

TERMUX_PKG_HOMEPAGE=https://dettus.net/dMagnetic
TERMUX_PKG_DESCRIPTION="Interpreter for classic text adventure games and interactive fiction"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.37
TERMUX_PKG_SRCURL=https://dettus.net/dMagnetic/dMagnetic_${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=ad812bb515bc972e23930d643d5abeaed971d550768b1b3f371bd0f72c3c2e89
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_HOSTBUILD=true
TERMUX_PKG_GROUPS="games"
termux_step_host_build() {
cd $TERMUX_PKG_BUILDDIR
make -j $TERMUX_PKG_MAKE_PROCESSES dMagnetic
mv dMagnetic $TERMUX_PKG_HOSTBUILD_DIR/
make clean
}
termux_step_post_configure() {
# find our host-built dMagnetic
export PATH=$TERMUX_PKG_HOSTBUILD_DIR:$PATH
}
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
}