aboutsummaryrefslogtreecommitdiffstats
path: root/community/elixir/APKBUILD
blob: db9e3f116852a1e2f198aac24f6fa1b932ed4c6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Marlus Saraiva <marlus.saraiva@gmail.com>
pkgname=elixir
pkgver=1.6.3
pkgrel=1
pkgdesc="Elixir is a dynamic, functional language designed for building scalable and maintainable applications"
url="http://elixir-lang.org"
arch="noarch"
license="Apache-2.0"
depends="erlang erlang-inets erlang-ssl
	erlang-public-key erlang-asn1 erlang-sasl erlang-erl-interface erlang-dev erlang-dialyzer erlang-erts erlang-hipe"
makedepends="erlang-crypto erlang-syntax-tools erlang-parsetools erlang-eunit erlang-tools"
subpackages="$pkgname-doc"
# TODO: remove disable-iex-tests.patch once elixir 1.7 is released, see https://github.com/elixir-lang/elixir/pull/7350
source="$pkgname-$pkgver.tar.gz::https://github.com/elixir-lang/elixir/archive/v$pkgver.tar.gz
	bit-comp-works.patch
	disable-iex-tests.patch"
builddir="$srcdir/$pkgname-$pkgver"

case "$CARCH" in
aarch64) options="!check" ;; # FIXME
esac

build() {
	cd "$builddir"
	LANG="en_US.UTF-8" make -j1
}

check() {
	cd "$builddir"

	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="76f38accd277d92c428954871c62b9ff69b97137d1e4e3889feb3be94055ba2b45275aa38561aef700dac0f5381db72d4e47b55342a3e04397f3781b412dbf2c  elixir-1.6.3.tar.gz
87ec27be2dfe8a7bcda0e50c81c75bcd66e3225259a0da14925623d65331a86972ea5c94df435827232f39bc67823e7ed23e671a975b10c2ebb29c19e1280863  bit-comp-works.patch
7d579a8be0f6ba2de6d85861267f9fea7846c29cf661c3221b02e1464c87db941d015a18217ffe25a5846a4ea63ccf8338541568a70bf9ec07237b91a94a0860  disable-iex-tests.patch"