# Maintainer: Marlus Saraiva pkgname=elixir pkgver=1.0.4 pkgrel=0 pkgdesc="Elixir is a dynamic, functional language designed for building scalable and maintainable applications" url="http://elixir-lang.org" arch="noarch" license="ASL 2.0" depends="erlang erlang-crypto erlang-syntax-tools erlang-inets erlang-ssl erlang-public-key erlang-asn1 erlang-sasl erlang-erl-interface erlang-dev" makedepends="erlang-parsetools erlang-eunit erlang-tools" source="https://github.com/elixir-lang/elixir/archive/v$pkgver.tar.gz fix_system_cmd_test.patch" _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" make test || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" PREFIX=/usr install || return 1 } md5sums="7e1e88e012d93ea143188a7b17c52917 v1.0.4.tar.gz 2b9b691105d748719521aa8f1711b19a fix_system_cmd_test.patch" sha256sums="79341fde3b01217aa252b8996d1b1b27cd1006cb89fe43446d5241e3dcb84bad v1.0.4.tar.gz 95e58ed3a81f1e10f5f63b9a8602c9b359e6c081e3fd5a6fa2bbb1a51b045300 fix_system_cmd_test.patch" sha512sums="c25bc101fd3d1bc8bfb8c793b5da95ac544d0b921538dc24fcd92ff87d1f6248f3c760f714dd7fe061827c5495004d4f7d6d4788c28daf9d519694e49afd5e0f v1.0.4.tar.gz adeb558291a0199778ee2d1a87173d2729645d9111840bdc386bde9c6659d05a6c6004fdb33e7495e3f7b92cc3e67a923bf4bf65fb914531ea7ef3618ae26ff6 fix_system_cmd_test.patch"