1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
6 pkgdesc='A JSON implementation in pure Ruby'
8 url='http://flori.github.io/json/'
11 makedepends=(ruby-rake)
13 source=(https://github.com/flori/json/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
14 sha256sums=('41151b4cca7f58a94b559c73ad5e6c1940fc35521e0f69d741de79f80fa50d1a')
17 local _gemdir="$(gem env gemdir)"
19 gem build json_pure.gemspec
23 --ignore-dependencies \
25 --install-dir "tmp_install/$_gemdir" \
26 --bindir "tmp_install/usr/bin" \
28 find "tmp_install/$_gemdir/gems/" \
35 -iname "gem.build_complete" -o \
39 rm -r tmp_install/$_gemdir/cache
43 local _gemdir="$(gem env gemdir)"
45 GEM_HOME="tmp_install/$_gemdir" rake test_pure
50 cp -a tmp_install/* "$pkgdir"/