aports/community/elixir/APKBUILD
Celeste cf14613819 community/elixir: update depends
- we don't ship erlang < 23.0 anymore in aports

  - git is required for computing the value of
    `git_exclude` in lib/mix/test/test_helper.exs
2025-05-18 05:33:03 +00:00

46 lines
1.4 KiB
Text

# Contributor: Daniel Isaksen <d@duniel.no>
# Contributor: Victor Schroeder <me@vschroeder.net>
# Contributor: Marlus Saraiva <marlus.saraiva@gmail.com>
# Maintainer: Michal Jirků <box@wejn.org>
pkgname=elixir
pkgver=1.18.3
pkgrel=0
pkgdesc="Elixir is a dynamic, functional language designed for building scalable and maintainable applications"
url="https://elixir-lang.org/"
arch="noarch"
license="Apache-2.0"
depends="erlang-dev"
makedepends="erlang-dialyzer"
checkdepends="erlang-doc git"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/elixir-lang/elixir/archive/v$pkgver.tar.gz
consistently-apply-timeout.patch
ensure-timestamp-is-bumped.patch
"
build() {
LANG="C.UTF-8" make
}
check() {
set +e
ELIXIR_ASSERT_TIMEOUT=10000 LANG="C.UTF-8" make test
ret=$?
set -e
# test starts epmd, which then hangs presubmit pipeline.
# so we kill it here.
killall -q epmd
return $ret
}
package() {
make DESTDIR="$pkgdir" PREFIX=/usr install
}
sha512sums="
bf56c69ab7768c6d08b42bf42b062db8d7a063ec6971e5f21575f5502f7d954fe4ab77dcb83cbb4d72dcc53ec91a396e3738adabcc52e83cb375296989054df5 elixir-1.18.3.tar.gz
e72a00f8170bdf96ac92e3224492b2185d2aa5e602124ec0f8c764d9d79a0ebcf249a1c19be37a0a65dc3209b8e14131df6d39cb21dc374399a62741bbe4ca02 consistently-apply-timeout.patch
ea59cdbf5aa84c3e698f493a30ef9794b5a9ee32435f51a94ea6c700f58eb08f8cbf43345acb3d0d6ac420e6a5f0f2430ad97d670bce398358d4a47ab1077d14 ensure-timestamp-is-bumped.patch
"