aboutsummaryrefslogtreecommitdiffstats
path: root/community/elixir/APKBUILD
blob: 0c1fdcbd95e7a2d273921b265741bde4ef649324 (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
# Maintainer: Marlus Saraiva <marlus.saraiva@gmail.com>

pkgname=elixir
pkgver=1.2.6
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"
subpackages="$pkgname-doc"
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="2f637bba4a3ae352a28754756aa0fcb5  elixir-1.2.6.tar.gz"
sha256sums="2fd4ed9d7d8b4bd9f151cdaf6b39726d64d7cf756186a5c9454867514e5b0916  elixir-1.2.6.tar.gz"
sha512sums="26016e7bf7b15194ce6236d6d44e530756ca9e9cf1d749f3bb77d7b0b3d0a3413034837d4cbd8410c3da8d87b7b751a36658c0544c8abbf92f269f6eaed9d7ac  elixir-1.2.6.tar.gz"