mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-01 16:40:33 +00:00
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
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.2"
|
|
TERMUX_PKG_SRCURL=https://github.com/atomvm/AtomVM/archive/refs/tags/v${TERMUX_PKG_VERSION#*:}.tar.gz
|
|
TERMUX_PKG_SHA256=ebd7248ebe11c45d299a2b5195f3f543373b0018c565ef52560493a9624be524
|
|
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
|
|
}
|