upgpkg: ruby-oj 3.13.6-1

New upstream release.
This commit is contained in:
George Rawlinson 2021-09-12 08:19:51 +00:00
parent 2abd66b851
commit 1a5f09ada8
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -2,7 +2,7 @@
_gemname=oj _gemname=oj
pkgname=ruby-$_gemname pkgname=ruby-$_gemname
pkgver=3.13.5 pkgver=3.13.6
pkgrel=1 pkgrel=1
pkgdesc='The fastest JSON parser and object serializer' pkgdesc='The fastest JSON parser and object serializer'
arch=('x86_64') arch=('x86_64')
@ -13,7 +13,7 @@ makedepends=('ruby-rdoc')
options=(!emptydirs) options=(!emptydirs)
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem") source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
noextract=("$_gemname-$pkgver.gem") noextract=("$_gemname-$pkgver.gem")
b2sums=('ff150b944d2fba00ca28e85e4aff8786c2766979dd0c0f7b38273da3d66c263d00fa060000ec8c5cc4d7ba409eff7bd470b15a258c91ab5ab665095d2acee6c3') b2sums=('18d1ea3ee6ea8300f82fb86647b8658358b9a6e96775f0c9b81fdd4c1e387839fb41f2fe9c682b43c042ab061cafc4594053bc83eb3a30f6bf15d50297a26286')
package() { package() {
local _gemdir="$(ruby -e'puts Gem.default_dir')" local _gemdir="$(ruby -e'puts Gem.default_dir')"
@ -21,6 +21,7 @@ package() {
gem install \ gem install \
--verbose \ --verbose \
--ignore-dependencies \ --ignore-dependencies \
--no-document \
--no-user-install \ --no-user-install \
--install-dir "$pkgdir/$_gemdir" \ --install-dir "$pkgdir/$_gemdir" \
--bindir "$pkgdir/usr/bin" \ --bindir "$pkgdir/usr/bin" \
@ -37,9 +38,19 @@ package() {
# move documentation # move documentation
install -vd "$pkgdir/usr/share/doc/$pkgname" install -vd "$pkgdir/usr/share/doc/$pkgname"
mv -v README.md pages "$pkgdir/usr/share/doc/$pkgname" mv -v *.md pages "$pkgdir/usr/share/doc/$pkgname"
# license # license
install -vd "$pkgdir/usr/share/licenses/$pkgname" install -vd "$pkgdir/usr/share/licenses/$pkgname"
mv -v LICENSE "$pkgdir/usr/share/licenses/$pkgname" mv -v LICENSE "$pkgdir/usr/share/licenses/$pkgname"
# generate reproducible documentation
install -vd "$pkgdir/$_gemdir/doc/$_gemname-$pkgver"
cd "$pkgdir/$_gemdir/gems/$_gemname-$pkgver"
rdoc \
--format ri \
--output "$pkgdir$_gemdir/doc/$_gemname-$pkgver/ri" \
./lib
# delete unnecessary rdoc metadata file
rm -f "$pkgdir$_gemdir/doc/$_gemname-$pkgver/ri/created.rid"
} }