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

pkgname=elixir
pkgver=1.1.1
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="e952220c61fae06bdc59d7d0068d9f6d  elixir-1.1.1.tar.gz"
sha256sums="3b7d6e4fdbcc82d19fa76f4e384f8a87535abcd00ef04528dc6b6706f32a106a  elixir-1.1.1.tar.gz"
sha512sums="24b1ccf6877098cf5539607a13d4c408314c01b3bac8aaa9cfda59299113affd173cb29606f57110e44104095360ca81f084cceb561fc30e795c0d15d6140772  elixir-1.1.1.tar.gz"