[arch-commits] Commit in elixir/trunk (PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Wed Apr 8 08:58:22 UTC 2015


    Date: Wednesday, April 8, 2015 @ 10:58:22
  Author: spupykin
Revision: 130916

upgpkg: elixir 1.0.4-1

upd

Modified:
  elixir/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++---------------
 1 file changed, 6 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-04-08 08:58:18 UTC (rev 130915)
+++ PKGBUILD	2015-04-08 08:58:22 UTC (rev 130916)
@@ -3,8 +3,8 @@
 # Old maintainer: Gilbert Kennen <gilbert firewatcher org>
 
 pkgname=elixir
-pkgver=1.0.3
-pkgrel=2
+pkgver=1.0.4
+pkgrel=1
 pkgdesc="a functional meta-programming aware language built on top of the Erlang VM"
 url="http://elixir-lang.org"
 arch=('any')
@@ -11,30 +11,21 @@
 license=('Apache' 'custom:EPL')
 depends=('erlang-nox')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/elixir-lang/elixir/tarball/v${pkgver}")
-sha512sums=('301a52450044fc571b87f1ae6e0c7a9a7069dc8a84bee9e497b06b6744e57f0bcea2b03622f1a55d5cd08fb944ae6b64d05e8c6797a167833d81e8ea4ab7ef7e')
+md5sums=('e672ad38e27c0ce407e135223897f805')
 
-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"
+  cd "${srcdir}/"elixir-lang*
   make
 }
 
 check() {
-  cd "${srcdir}/${pkgver}_src"
+  cd "${srcdir}/"elixir-lang*
   make test_erlang
 }
 
 package() {
+  cd "${srcdir}/"elixir-lang*
   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