summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Valentini2018-03-13 19:07:38 +0100
committerRoberto Valentini2018-03-13 19:07:38 +0100
commit2cd291687ce56a1d7a00b5f3c751a2c6c1f3eb7a (patch)
tree91ecd4814f39b12fa36feca5cac5f27b0d95ab37
parent66df4ba2d785a6a9813f10786e50aca18e76670c (diff)
downloadaur-2cd291687ce56a1d7a00b5f3c751a2c6c1f3eb7a.tar.gz
update to version 1.8.0
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD34
2 files changed, 25 insertions, 27 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 412acc95fe9..5f51fa10347 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
-# Generated by mksrcinfo v8
-# Wed Jun 8 14:55:28 UTC 2016
pkgbase = ruby-awesome_print
- pkgdesc = Pretty print your Ruby objects with style
- pkgver = 1.7.0
+ pkgdesc = Great Ruby dubugging companion: pretty print Ruby objects to visualize their structure. Supports custom object formatting via plugins.
+ pkgver = 1.8.0
pkgrel = 1
- url = https://github.com/michaeldv/awesome_print
- arch = any
+ url = https://github.com/awesome-print/awesome_print
+ arch = i686
+ arch = x86_64
license = MIT
depends = ruby
- noextract = awesome_print-1.7.0.gem
- source = https://rubygems.org/downloads/awesome_print-1.7.0.gem
- sha256sums = a4ea7e755c4aab68157ea3d67b94aa375d01b85c4670db3d3afcc7296f0c1e7e
+ noextract = awesome_print-1.8.0.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/awesome_print-1.8.0.gem
+ sha256sums = 50b0cab61afe582bc675202dc8f6745b97aae7fefe29d06a91a669d763805991
pkgname = ruby-awesome_print
diff --git a/PKGBUILD b/PKGBUILD
index 6657c0680b7..263c86627ee 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,22 @@
-# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+# Maintainer Valantin <valantin89 [at] gmail [dot] com>
+# Contributor: Andy Weidenbaum <archbaum@gmail.com>
-pkgname=ruby-awesome_print
-pkgver=1.7.0
+_gemname=awesome_print
+pkgname=ruby-$_gemname
+pkgver=1.8.0
pkgrel=1
-pkgdesc="Pretty print your Ruby objects with style"
-arch=('any')
+pkgdesc='Great Ruby dubugging companion: pretty print Ruby objects to visualize their structure. Supports custom object formatting via plugins.'
+arch=(i686 x86_64)
+url='https://github.com/awesome-print/awesome_print'
+license=(MIT)
depends=('ruby')
-url="https://github.com/michaeldv/awesome_print"
-license=('MIT')
-source=(https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem)
-sha256sums=('a4ea7e755c4aab68157ea3d67b94aa375d01b85c4670db3d3afcc7296f0c1e7e')
-noextract=("${pkgname#*-}-${pkgver}.gem")
+options=(!emptydirs)
+source=("https://rubygems.org/downloads/${_gemname}-${pkgver}.gem")
+noextract=($_gemname-$pkgver.gem)
+sha256sums=('50b0cab61afe582bc675202dc8f6745b97aae7fefe29d06a91a669d763805991')
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 --no-document -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" $_gemname-$pkgver.gem
+ rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
}