summaryrefslogtreecommitdiff
path: root/pcr/ruby-yard/PKGBUILD
blob: 56a612cbd2697c20bd9d73d840544345e83da306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer (Arch): Matt Harrison <matt at mistbyte dot com>
# Contributor (Arch): Renzo Carbonara <gnuk0001@gmail.com>

pkgname=ruby-yard
_gemname=${pkgname#ruby-}
pkgver=0.8.2.1
pkgrel=2
pkgdesc="Documentation tool for consistent and usable documentation in Ruby."
arch=('any')
url="http://yardoc.org"
license=('MIT')
groups=()
depends=()
makedepends=('rubygems')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=("http://gems.rubyforge.org/gems/yard-${pkgver}.gem")
noextract=("yard-${pkgver}.gem")

build() {
  cd $srcdir
  local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
  gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" \
              -n "$pkgdir/usr/bin" ${_gemname}-$pkgver.gem
  install -D "$pkgdir$_gemdir/gems/${_gemname}-$pkgver/LICENSE" \
             "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}

md5sums=('08a48d23f8729b68945011cae7d121fe')

# vim:set ts=2 sw=2 et: