2020-01-13 00:30:49 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://elixir-lang.org/
|
2019-11-18 15:26:20 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Elixir is a dynamic, functional language designed for building scalable and maintainable applications"
|
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-01-13 13:10:14 +01:00
|
|
|
TERMUX_PKG_VERSION=1.13.2
|
2019-11-18 15:26:20 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/elixir-lang/elixir/releases/download/v${TERMUX_PKG_VERSION}/Precompiled.zip
|
2022-01-13 13:10:14 +01:00
|
|
|
TERMUX_PKG_SHA256=b8f10682bce3d2c215bc4ecb2872987a734071f0d7fee8bff3e46afa981f3dd7
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2019-11-18 15:26:20 +01:00
|
|
|
TERMUX_PKG_DEPENDS="dash, erlang"
|
|
|
|
TERMUX_PKG_SUGGESTS="clang, make"
|
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
|
2020-07-21 10:02:33 +02:00
|
|
|
termux_step_get_source() {
|
2019-11-18 15:26:20 +01:00
|
|
|
termux_download "$TERMUX_PKG_SRCURL" "$TERMUX_PKG_CACHEDIR"/prebuilt.zip \
|
|
|
|
"$TERMUX_PKG_SHA256"
|
2020-10-22 23:55:05 +02:00
|
|
|
# Create src directory to avoid build-package.sh errors.
|
|
|
|
mkdir -p "$TERMUX_PKG_SRCDIR"
|
|
|
|
}
|
2019-11-18 15:26:20 +01:00
|
|
|
|
2020-10-22 23:55:05 +02:00
|
|
|
termux_step_make_install() {
|
2019-11-18 15:26:20 +01:00
|
|
|
# Unpack directly to $PREFIX/opt/elixir.
|
|
|
|
mkdir -p "$TERMUX_PREFIX"/opt
|
|
|
|
rm -rf "$TERMUX_PREFIX"/opt/elixir
|
|
|
|
unzip -d "$TERMUX_PREFIX"/opt/elixir "$TERMUX_PKG_CACHEDIR"/prebuilt.zip
|
|
|
|
|
|
|
|
# Remove unneeded files.
|
|
|
|
(cd "$TERMUX_PREFIX"/opt/elixir/man; rm -f common elixir.1.in iex.1.in)
|
|
|
|
|
|
|
|
# Put manpages to standard location.
|
|
|
|
for page in elixir.1 elixirc.1 iex.1 mix.1; do
|
|
|
|
install -Dm600 "$TERMUX_PREFIX/opt/elixir/man/$page" \
|
|
|
|
"$TERMUX_PREFIX/share/man/man1/$page"
|
|
|
|
done
|
|
|
|
unset page
|
|
|
|
rm -rf "$TERMUX_PREFIX"/opt/elixir/man
|
|
|
|
|
|
|
|
# Symlink startup scripts to $PREFIX/bin.
|
|
|
|
for file in elixir elixirc iex mix; do
|
|
|
|
ln -sfr "$TERMUX_PREFIX/opt/elixir/bin/$file" \
|
|
|
|
"$TERMUX_PREFIX/bin/$file"
|
|
|
|
done
|
|
|
|
unset file
|
|
|
|
}
|