upgpkg: ruby-oj 3.13.1-1
* New upstream release. * Add make dependency: ruby-rdoc. * Remove autogenerated gem_make.out file.
This commit is contained in:
parent
35d9e88e4f
commit
5dd2a10349
1 changed files with 13 additions and 8 deletions
|
@ -2,40 +2,45 @@
|
||||||
|
|
||||||
_gemname=oj
|
_gemname=oj
|
||||||
pkgname=ruby-$_gemname
|
pkgname=ruby-$_gemname
|
||||||
pkgver=3.13.0
|
pkgver=3.13.1
|
||||||
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')
|
||||||
url='https://github.com/ohler55/oj'
|
url='https://github.com/ohler55/oj'
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('ruby')
|
depends=('ruby')
|
||||||
|
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=('483e89e7027cf3d096de78c07432adf5d3c341d87a69e7d1335ce8012aa8b68c51e8fd6dcead177134b5fbc203f81cfbc9c7583795221e30b37934ef6cbb4d83')
|
b2sums=('a77d194ab66a93abb6a9606c4b1697e4382dd1d7f4d1f59dedb370971c760feba221d6d881ce933632d98f63696695ae290f0709e78b36459c1c8cbf43b74242')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
||||||
|
|
||||||
gem install \
|
gem install \
|
||||||
|
--verbose \
|
||||||
--ignore-dependencies \
|
--ignore-dependencies \
|
||||||
--no-user-install \
|
--no-user-install \
|
||||||
--no-document \
|
|
||||||
--install-dir "$pkgdir/$_gemdir" \
|
--install-dir "$pkgdir/$_gemdir" \
|
||||||
--bindir "$pkgdir/usr/bin" \
|
--bindir "$pkgdir/usr/bin" \
|
||||||
"$_gemname-$pkgver.gem"
|
"$_gemname-$pkgver.gem"
|
||||||
|
|
||||||
# delete cache
|
# delete cache
|
||||||
cd "$pkgdir/$_gemdir"
|
cd "$pkgdir/$_gemdir"
|
||||||
rm -rf cache
|
rm -vrf cache
|
||||||
|
|
||||||
|
# delete unnecessary files & folders
|
||||||
|
# TODO: investigate gem.build_complete (gem_build_complete_path)
|
||||||
|
rm -vrf "extensions/$(uname -m)-linux/$(basename $(ruby -e'puts Gem.default_dir'))/$_gemname-$pkgver/gem_make.out"
|
||||||
cd "gems/$_gemname-$pkgver"
|
cd "gems/$_gemname-$pkgver"
|
||||||
# delete unnecessary folders
|
rm -vrf test ext
|
||||||
rm -rf test ext
|
|
||||||
# move documentation
|
# move documentation
|
||||||
install -vd "$pkgdir/usr/share/doc/$pkgname"
|
install -vd "$pkgdir/usr/share/doc/$pkgname"
|
||||||
mv README.md pages "$pkgdir/usr/share/doc/$pkgname"
|
mv -v README.md pages "$pkgdir/usr/share/doc/$pkgname"
|
||||||
|
|
||||||
# license
|
# license
|
||||||
install -vd "$pkgdir/usr/share/licenses/$pkgname"
|
install -vd "$pkgdir/usr/share/licenses/$pkgname"
|
||||||
mv LICENSE "$pkgdir/usr/share/licenses/$pkgname"
|
mv -v LICENSE "$pkgdir/usr/share/licenses/$pkgname"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue