aboutsummaryrefslogtreecommitdiffstats
path: root/main/elixir/APKBUILD
blob: b5c7a5b319ddc5012bef3ac8e4dce95a088a81b0 (plain) (blame)
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
# Maintainer: Marlus Saraiva <marlus.saraiva@gmail.com>

pkgname=elixir
pkgver=1.1.0
pkgrel=0
pkgdesc="Elixir is a dynamic, functional language designed for building scalable and maintainable applications"
url="http://elixir-lang.org"
arch="x86_64"
license="ASL 2.0"
depends="erlang erlang-inets erlang-ssl
         erlang-public-key erlang-asn1 erlang-sasl erlang-erl-interface erlang-dev"
makedepends="erlang-crypto erlang-syntax-tools erlang-parsetools erlang-eunit erlang-tools"
source="$pkgname-$pkgver.tar.gz::https://github.com/elixir-lang/elixir/archive/v$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
			*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1
		esac
	done
}

build() {
	cd "$_builddir"
	export LANG="en_US.UTF-8"
	make -j1 || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" PREFIX=/usr install || return 1
}

md5sums="4781b2b3bf15d22d7b4c00f1c92bf54f  elixir-1.1.0.tar.gz"
sha256sums="6be4f083df230f901975df3a3bb32d3bd1e70a4d0a072aabc5972113b37ebb3b  elixir-1.1.0.tar.gz"
sha512sums="1a87914aa12fa6fcf6d16d3a6de0cc92c65ca1fe8061a632463ad3da8d1dcadd8f08cdd34b15ec13356bbb4771456a982a5dad3c0463dc7e7ce6b982eacab547  elixir-1.1.0.tar.gz"