# Maintainer: Johannes Löthberg # Contributor: Sergej Pupykin # Contributor: Gilbert Kennen pkgname=elixir pkgver=1.12.0 pkgrel=1 pkgdesc="a functional meta-programming aware language built on top of the Erlang VM" url="https://elixir-lang.org" arch=('any') license=('Apache' 'custom:EPL') depends=('erlang-nox') checkdepends=('git') source=("$pkgname-$pkgver.tar.gz::https://github.com/elixir-lang/elixir/archive/v$pkgver.tar.gz") sha256sums=('2fc896b5f7174708b9a643f1ff3d1718dcc5d2ee31f01b455c0570e8424a3c9a') build() { cd elixir-"$pkgver" make } check() { cd elixir-"$pkgver" ERL_EPMD_PORT=5369 make test # The elixir test suite starts up epmd and then doesn't kill it again afterwards. epmd -port 5369 -kill } package() { cd elixir-"$pkgver" mkdir -p "$pkgdir"/usr/share/licenses/"$pkgname" install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname" make DESTDIR="$pkgdir" PREFIX=/usr install }