mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 00:10:52 +00:00
a2169a982a
This commit has been automatically submitted by Github Actions.
32 lines
1.0 KiB
Bash
32 lines
1.0 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/bettio/AtomVM
|
|
TERMUX_PKG_DESCRIPTION="The minimal Erlang VM implementation"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="1:0.6.5"
|
|
TERMUX_PKG_SRCURL=https://github.com/atomvm/AtomVM/archive/refs/tags/v${TERMUX_PKG_VERSION#*:}.tar.gz
|
|
TERMUX_PKG_SHA256=f1831eb3e05e07b1a0855f592de5e6e22e4e89acb72d7345b40a8db16eae7ea8
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="zlib"
|
|
TERMUX_PKG_HOSTBUILD=true
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-DAVM_BUILD_RUNTIME_ONLY=ON
|
|
"
|
|
|
|
termux_step_host_build() {
|
|
termux_setup_cmake
|
|
cmake "$TERMUX_PKG_SRCDIR" $TERMUX_PKG_EXTRA_CONFIGURE_ARGS
|
|
make -j $TERMUX_PKG_MAKE_PROCESSES
|
|
}
|
|
|
|
termux_step_post_configure() {
|
|
# We need the "PackBEAM" compiled for host.
|
|
export PATH=$PATH:$TERMUX_PKG_HOSTBUILD_DIR/tools/packbeam
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 "$TERMUX_PKG_BUILDDIR"/src/AtomVM \
|
|
"$TERMUX_PREFIX"/bin/AtomVM
|
|
install -Dm700 "$TERMUX_PKG_BUILDDIR"/tools/packbeam/PackBEAM \
|
|
"$TERMUX_PREFIX"/bin/PackBEAM
|
|
}
|