1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Bernhard Landauer <oberon@manjaro.org>
3 # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
6 pkgname=ruby-${_gemname}
7 _gitcommit=d748e0d6a3f6235a8b23a39632ccaf8b35023ba5
10 pkgdesc='Hoe is a rake/rubygems helper for project Rakefiles'
11 url='https://www.zenspider.com/projects/hoe.html'
15 makedepends=('git' 'ruby-rdoc' 'ruby-rake')
16 checkdepends=('ruby-minitest')
17 options=('!emptydirs')
18 source=("git+https://github.com/seattlerb/hoe#commit=${_gitcommit}")
23 grep 'VERSION = "' lib/hoe.rb|sed -E 's|.*"(.+)"|\1|'
38 local _gemdir="$(gem env gemdir)"
39 gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" \
40 -n "${pkgdir}/usr/bin" pkg/${_gemname}-${pkgver}.gem
41 install -Dm 644 README.rdoc -t "${pkgdir}/usr/share/doc/${pkgname}"
42 install -Dm 644 README.rdoc -t "${pkgdir}/usr/share/licenses/${pkgname}"
43 rm -rf cache gems/${_gemname}-${pkgver}/{ext,lib/*/*.so} \
44 extensions/*/*/${_gemname}-${pkgver}/{mkmf.log,gem_make.out}