upgpkg: ruby-rubocop 1.21.0-1
* New upstream release. * Add missing url/license to PKGBUILD. * Ensure generated documentation is reproducible.
This commit is contained in:
parent
6811ca5744
commit
d0484d7fbe
1 changed files with 15 additions and 2 deletions
|
@ -4,10 +4,12 @@
|
||||||
|
|
||||||
_gemname=rubocop
|
_gemname=rubocop
|
||||||
pkgname=ruby-$_gemname
|
pkgname=ruby-$_gemname
|
||||||
pkgver=1.20.0
|
pkgver=1.21.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A Ruby static code analyzer and formatter"
|
pkgdesc="A Ruby static code analyzer and formatter"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
url="https://rubocop.org"
|
||||||
|
license=('MIT')
|
||||||
depends=(
|
depends=(
|
||||||
'ruby'
|
'ruby'
|
||||||
'ruby-parallel'
|
'ruby-parallel'
|
||||||
|
@ -23,7 +25,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=('406c368cc2185123e782bd471fefc0ae7ea8aa76fba5c48231d7e99c9cc9203421f582171ac174c497e068f502bbfbfcd53c0a759cc0e0e3804cbedba8850b58')
|
b2sums=('78532e50a242fcf6c293ad391b2d0eece6ec662e14fcc41226c2d96fa3bc3a5b7d29a314d1323ebe57ef0af74fa9c52345af2f70a91aa0db50c3025d975d41c7')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
||||||
|
@ -31,6 +33,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" \
|
||||||
|
@ -49,4 +52,14 @@ package() {
|
||||||
# move license
|
# move license
|
||||||
install -vd "$pkgdir/usr/share/licenses/$pkgname"
|
install -vd "$pkgdir/usr/share/licenses/$pkgname"
|
||||||
mv -vt "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
|
mv -vt "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
|
||||||
|
|
||||||
|
# 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