[arch-commits] Commit in elixir/repos (community-any community-any/PKGBUILD)
Sergej Pupykin
spupykin at archlinux.org
Tue Feb 24 10:21:09 UTC 2015
Date: Tuesday, February 24, 2015 @ 11:21:08
Author: spupykin
Revision: 128172
archrelease: copy trunk to community-any
Added:
elixir/repos/community-any/
elixir/repos/community-any/PKGBUILD
(from rev 128171, elixir/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: elixir/repos/community-any/PKGBUILD (from rev 128171, elixir/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-02-24 10:21:08 UTC (rev 128172)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+# Old maintainer: Gilbert Kennen <gilbert firewatcher org>
+
+pkgname=elixir
+pkgver=1.0.3
+pkgrel=2
+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=('301a52450044fc571b87f1ae6e0c7a9a7069dc8a84bee9e497b06b6744e57f0bcea2b03622f1a55d5cd08fb944ae6b64d05e8c6797a167833d81e8ea4ab7ef7e')
+
+prepare() {
+ local elixir_src_dir=${srcdir}/$(tar "-tzf${srcdir}/v${pkgver}" | grep -o '^[^/]\+' | sort -u)
+ rm -rf "${srcdir}/${pkgver}_src"
+ mv $elixir_src_dir "${srcdir}/${pkgver}_src"
+}
+
+build() {
+ cd "${srcdir}/${pkgver}_src"
+ make
+}
+
+check() {
+ cd "${srcdir}/${pkgver}_src"
+ make test_erlang
+}
+
+package() {
+ mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
+
+ cd "${srcdir}/${pkgver}_src"
+
+ install -Dm644 {LEGAL,LICENSE} "${pkgdir}/usr/share/licenses/${pkgname}"
+
+ make DESTDIR=$pkgdir PREFIX=/usr install
+}
More information about the arch-commits
mailing list