0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
Termux Github Actions 8b1913e3a6 bump(main/crawl): 0.32.1
This commit has been automatically submitted by Github Actions.
2024-09-26 06:14:24 +00:00

36 lines
1.1 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://crawl.develz.org/
TERMUX_PKG_DESCRIPTION="Roguelike adventure through dungeons filled with dangerous monsters"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.32.1"
TERMUX_PKG_SRCURL=https://github.com/crawl/crawl/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=8b9330a9a8156a7b93cc0964b5cc7cba8312f0cf745b64a072432f17f67f889d
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="libc++, liblua51, libsqlite, ncurses, zlib"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_MAKE_ARGS="
FHS=yes
--debug
"
termux_step_post_get_source() {
echo "Applying util-gen_ver.pl.diff"
sed "s|@VERSION@|${TERMUX_PKG_VERSION#*:}|g" \
$TERMUX_PKG_BUILDER_DIR/util-gen_ver.pl.diff \
| patch --silent -p1
pushd crawl-ref/source
local f
for f in initfile.cc main.cc startup.cc syscalls.cc; do
sed -i 's|\(__ANDROID_\)_|\1_NO_TERMUX__|g' "${f}"
done
popd
}
termux_step_pre_configure() {
TERMUX_PKG_SRCDIR+="/crawl-ref/source"
TERMUX_PKG_BUILDDIR=$TERMUX_PKG_SRCDIR
export DEFINES_L="-DHAVE_STAT"
export LIBS="-llog -Wl,--rpath=$TERMUX_PREFIX/lib"
}