summaryrefslogtreecommitdiffstats
path: root/abs/extra/ruby-rdoc/PKGBUILD
blob: aeb0c8c40783c09964fbdb1b18b735f71d9cfe94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>

_gemname=rdoc
pkgname=ruby-$_gemname
pkgver=6.0.1
pkgrel=1
pkgdesc='Command-line documentation generator for Ruby projects'
arch=(any)
url='https://ruby.github.io/rdoc/'
license=(MIT)
depends=(ruby)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha1sums=('ba0979650b3637cd00126d50d631e381caff72a7')

package() {
  local _gemdir="$(ruby -e'puts Gem.default_dir')"
  gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
  rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
}