summaryrefslogtreecommitdiff
path: root/pcr/elixir
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/elixir')
-rw-r--r--pcr/elixir/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
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 <gilbert firewatcher org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+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
+}