2021-08-04 01:22:07 +00:00
|
|
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
|
|
|
|
_gemname=rubocop-ast
|
|
|
|
pkgname=ruby-$_gemname
|
2021-09-28 07:13:25 +00:00
|
|
|
pkgver=1.12.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-09-28 07:13:25 +00:00
|
|
|
b2sums=('ebdbde066f9c8c62f5b01233d30e91db8ee3d0927196ace82613675cc61bbb40800c6a13b61037fa080189babb60e9b99fb2d6795c0eeb6e0881c50a8a6d491b')
|
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
|
|
|
|
}
|