summaryrefslogtreecommitdiff
path: root/pcr/elixir/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-02-11 20:11:51 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-02-11 20:11:51 -0200
commit9703df6faa8c3eba6a36066b008a730981063921 (patch)
tree93be06ef55a3efc7c0cb2655ac159950fe16bc62 /pcr/elixir/PKGBUILD
parent6805f95175595b078ba50a1b83a08f0810ac1bcc (diff)
downloadabslibre-9703df6faa8c3eba6a36066b008a730981063921.tar.gz
abslibre-9703df6faa8c3eba6a36066b008a730981063921.tar.bz2
abslibre-9703df6faa8c3eba6a36066b008a730981063921.zip
elixir: add new package to [pcr]
Diffstat (limited to 'pcr/elixir/PKGBUILD')
-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
+}