From ffa31b91fd23ec1d1842e4613ea608bfc5c710dd Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Sun, 24 Mar 2019 23:38:33 +0100 Subject: pcr: add ruby-json from AUR Signed-off-by: Denis 'GNUtoo' Carikli --- pcr/ruby-json/PKGBUILD | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pcr/ruby-json/PKGBUILD (limited to 'pcr/ruby-json/PKGBUILD') 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 + +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" +} -- cgit v1.2.3