diff options
Diffstat (limited to 'pcr/ruby-json/PKGBUILD')
-rw-r--r-- | pcr/ruby-json/PKGBUILD | 21 |
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" +} |