summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e4c71d272fbd4dc5b0d7eff683827e1bdb4892c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Generated by gem2arch (https://github.com/anatol/gem2arch)
# Maintainer: Anatoly Bashmakov <anatoly at posteo dot net>
# Contributor: kulpae <my.shando@googlemail.com>

_gemname=json_pure
pkgname=ruby-$_gemname
pkgver=2.6.1
pkgrel=2
pkgdesc='JSON Implementation for Ruby'
arch=(any)
url='http://flori.github.io/json/'
license=(RUBY)
depends=(ruby)
makedepends=(ruby-rdoc)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
sha1sums=('39ae8150208741b832e54244aa441cf103cfc0ec')
noextract=($_gemname-$pkgver.gem)

package() {
  local _gemdir="$(ruby -e 'puts Gem.default_dir')"
  gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
  rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
}