2021-08-04 01:22:07 +00:00
|
|
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
|
|
|
|
_gemname=rubocop-ast
|
|
|
|
pkgname=ruby-$_gemname
|
2021-11-08 06:11:52 +00:00
|
|
|
pkgver=1.13.0
|
2021-08-04 01:22:07 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="RuboCop's AST extensions and Node/NodePattern functionality"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/rubocop/rubocop-ast"
|
|
|
|
license=('MIT')
|
|
|
|
depends=('ruby' 'ruby-parser')
|
|
|
|
makedepends=('ruby-rdoc')
|
|
|
|
options=('!emptydirs')
|
|
|
|
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
|
|
|
|
noextract=("$_gemname-$pkgver.gem")
|
2021-11-08 06:11:52 +00:00
|
|
|
sha512sums=('a779738a1ffb0664afc91a34f1149a3db8511f577f96bdb4090b6232d6e3c78e4fb00c9ad2cf85163d8dcf4013600afc9514653f46046952b86e221ab2b107cf')
|
|
|
|
b2sums=('35b3a11b571d666fa1e1b642cd6d2eec4dc05b4003ce1338f480ddbf69c6eef9276cc93a46f2ecdac7a5c083288e34e700c506a24f3b3321eeab72590fd0ae94')
|
2021-08-04 01:22:07 +00:00
|
|
|
|
|
|
|
package() {
|
|
|
|
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
|
|
|
|
|
|
|
gem install \
|
|
|
|
--verbose \
|
|
|
|
--ignore-dependencies \
|
|
|
|
--no-user-install \
|
|
|
|
--install-dir "$pkgdir/$_gemdir" \
|
|
|
|
--bindir "$pkgdir/usr/bin" \
|
|
|
|
"$_gemname-$pkgver.gem"
|
|
|
|
|
|
|
|
# delete cache
|
|
|
|
cd "$pkgdir/$_gemdir"
|
|
|
|
rm -vrf cache
|
|
|
|
|
|
|
|
cd "gems/$_gemname-$pkgver"
|
|
|
|
|
|
|
|
# move documentation
|
|
|
|
install -vd "$pkgdir/usr/share/doc/$pkgname"
|
|
|
|
mv -vt "$pkgdir/usr/share/doc/$pkgname" README.md
|
|
|
|
|
|
|
|
# move license
|
|
|
|
install -vd "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
mv -vt "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
|
|
|
|
}
|