summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Landauer2018-02-14 02:37:42 +0100
committerBernhard Landauer2018-02-14 02:37:42 +0100
commit1a1f9865d969e24d9c5805daf86fdcf9f4fcc8ef (patch)
treeb96b5bf728e7c4573ea5c9286ce5d1cea42b80d6
parent96ba71a1301fdb62a2a09a87d8ec4f4b99739e2a (diff)
downloadaur-1a1f9865d969e24d9c5805daf86fdcf9f4fcc8ef.tar.gz
v2.4.0
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD19
2 files changed, 12 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1ea4d295301..83163373d69 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
# Generated by mksrcinfo v8
-# Wed Jun 8 14:54:09 UTC 2016
+# Wed Feb 14 01:37:21 UTC 2018
pkgbase = ruby-ast
pkgdesc = A library for working with Abstract Syntax Trees
- pkgver = 2.3.0
+ pkgver = 2.4.0
pkgrel = 1
url = https://whitequark.github.io/ast/
arch = any
license = MIT
depends = ruby
- noextract = ast-2.3.0.gem
- source = https://rubygems.org/downloads/ast-2.3.0.gem
- sha256sums = 15d97cf7f3430351a8663f2c5fb7591fb29f700fa28576c46c53b992e912e85e
+ noextract = ast-2.4.0.gem
+ source = https://rubygems.org/downloads/ast-2.4.0.gem
+ sha256sums = a7270b78d8c970e90a5b932471c691e3ca74aa8be030f1a954d38ec487d79aa0
pkgname = ruby-ast
diff --git a/PKGBUILD b/PKGBUILD
index e3576be87a9..c2863b9f13b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
-pkgname=ruby-ast
-pkgver=2.3.0
+_gemname=ast
+pkgname=ruby-$_gemname
+pkgver=2.4.0
pkgrel=1
pkgdesc="A library for working with Abstract Syntax Trees"
arch=('any')
@@ -9,16 +10,10 @@ url="https://whitequark.github.io/ast/"
license=('MIT')
depends=('ruby')
source=(https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem)
-sha256sums=('15d97cf7f3430351a8663f2c5fb7591fb29f700fa28576c46c53b992e912e85e')
-noextract=("${pkgname#*-}-${pkgver}.gem")
+sha256sums=('a7270b78d8c970e90a5b932471c691e3ca74aa8be030f1a954d38ec487d79aa0')
+noextract=("${pkgname#*-}-$pkgver.gem")
package() {
- cd "$srcdir"
-
- msg2 'Installing...'
- gem install \
- --no-user-install \
- --ignore-dependencies \
- -i "$pkgdir$(ruby -rubygems -e'puts Gem.default_dir')" \
- ${pkgname#*-}-$pkgver.gem
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" "$_gemname-$pkgver.gem"
}