summaryrefslogtreecommitdiff
path: root/pcr/ruby-json/PKGBUILD
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-03-24 23:38:33 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-03-27 04:36:05 +0100
commitffa31b91fd23ec1d1842e4613ea608bfc5c710dd (patch)
tree9590acce03d4e81830c4c569610720d5d0c9371b /pcr/ruby-json/PKGBUILD
parent6bc0941dcb4b919a515760bcc40ea4c80816781d (diff)
downloadabslibre-ffa31b91fd23ec1d1842e4613ea608bfc5c710dd.tar.gz
abslibre-ffa31b91fd23ec1d1842e4613ea608bfc5c710dd.tar.bz2
abslibre-ffa31b91fd23ec1d1842e4613ea608bfc5c710dd.zip
pcr: add ruby-json from AUR
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'pcr/ruby-json/PKGBUILD')
-rw-r--r--pcr/ruby-json/PKGBUILD21
1 files changed, 21 insertions, 0 deletions
diff --git a/pcr/ruby-json/PKGBUILD b/pcr/ruby-json/PKGBUILD
new file mode 100644
index 000000000..c25136cd8
--- /dev/null
+++ b/pcr/ruby-json/PKGBUILD
@@ -0,0 +1,21 @@
+# Maintainer (AUR): Colin Arnott <colin@urandom.co.uk>
+
+pkgname=ruby-json
+pkgver=2.2.0
+pkgrel=2
+pkgdesc="This is a JSON implementation as a Ruby extension in C"
+arch=(i686 x86_64 armv7h)
+url='https://rubygems.org/gems/json'
+license=('Ruby')
+depends=('ruby')
+makedepends=('ruby-rdoc')
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/${pkgname#ruby-}-$pkgver.gem)
+noextract=(${pkgname#ruby-}-$pkgver.gem)
+sha256sums=('9dd1437156773f72c096058ec837faac1b00077121a3fd574e68f895ea3aa96b')
+
+package() {
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --no-user-install --ignore-dependencies -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" "${pkgname#ruby-}-$pkgver.gem"
+ rm "$pkgdir/$_gemdir/cache/${pkgname#ruby-}-$pkgver.gem"
+}