From 9703df6faa8c3eba6a36066b008a730981063921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Wed, 11 Feb 2015 20:11:51 -0200 Subject: elixir: add new package to [pcr] --- pcr/elixir/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pcr/elixir/PKGBUILD (limited to 'pcr/elixir') diff --git a/pcr/elixir/PKGBUILD b/pcr/elixir/PKGBUILD new file mode 100644 index 000000000..f74cfc322 --- /dev/null +++ b/pcr/elixir/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer (Arch): Gilbert Kennen +# Maintainer: André Silva +pkgname=elixir +_pkgver=34df817 +pkgver=1.0.2 +pkgrel=1 +pkgdesc="a functional meta-programming aware language built on top of the Erlang VM" +url="http://elixir-lang.org" +arch=('any') +license=('Apache' 'custom:EPL') +depends=('erlang-nox') +source=("https://github.com/elixir-lang/elixir/tarball/v${pkgver}") +sha512sums=('fea1a62abf3274dcc62d568a1f6a39f76f602bda393dc4eb0b7bb875bc12fc949c70737c90101970d28fd21dfcfe8985659e1729678b66804cb925d4a3afffdd') + +build() { + cd "$srcdir/${pkgname}-lang-${pkgname}-${_pkgver}" + make +} + +check() { + cd "$srcdir/${pkgname}-lang-${pkgname}-${_pkgver}" + make test_erlang +} + +package() { + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + + cd "$srcdir/${pkgname}-lang-${pkgname}-${_pkgver}" + + install -Dm644 {LEGAL,LICENSE} "${pkgdir}/usr/share/licenses/${pkgname}" + + make DESTDIR=$pkgdir PREFIX=/usr install +} -- cgit v1.2.3-2-g168b