upgpkg: ruby-oj 3.13.6-1
New upstream release.
This commit is contained in:
parent
2abd66b851
commit
1a5f09ada8
1 changed files with 14 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
_gemname=oj
|
||||
pkgname=ruby-$_gemname
|
||||
pkgver=3.13.5
|
||||
pkgver=3.13.6
|
||||
pkgrel=1
|
||||
pkgdesc='The fastest JSON parser and object serializer'
|
||||
arch=('x86_64')
|
||||
|
@ -13,7 +13,7 @@ makedepends=('ruby-rdoc')
|
|||
options=(!emptydirs)
|
||||
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
|
||||
noextract=("$_gemname-$pkgver.gem")
|
||||
b2sums=('ff150b944d2fba00ca28e85e4aff8786c2766979dd0c0f7b38273da3d66c263d00fa060000ec8c5cc4d7ba409eff7bd470b15a258c91ab5ab665095d2acee6c3')
|
||||
b2sums=('18d1ea3ee6ea8300f82fb86647b8658358b9a6e96775f0c9b81fdd4c1e387839fb41f2fe9c682b43c042ab061cafc4594053bc83eb3a30f6bf15d50297a26286')
|
||||
|
||||
package() {
|
||||
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
||||
|
@ -21,6 +21,7 @@ package() {
|
|||
gem install \
|
||||
--verbose \
|
||||
--ignore-dependencies \
|
||||
--no-document \
|
||||
--no-user-install \
|
||||
--install-dir "$pkgdir/$_gemdir" \
|
||||
--bindir "$pkgdir/usr/bin" \
|
||||
|
@ -37,9 +38,19 @@ package() {
|
|||
|
||||
# move documentation
|
||||
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
|
||||
install -vd "$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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue