Date: Sunday, October 8, 2017 @ 02:25:28 Author: anthraxx Revision: 262108
addpkg: ruby-yard 0.9.9-2 Added: ruby-yard/ ruby-yard/repos/ ruby-yard/trunk/ ruby-yard/trunk/PKGBUILD ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Added: ruby-yard/trunk/PKGBUILD =================================================================== --- ruby-yard/trunk/PKGBUILD (rev 0) +++ ruby-yard/trunk/PKGBUILD 2017-10-08 02:25:28 UTC (rev 262108) @@ -0,0 +1,38 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Maintainer: Jerome Leclanche <jer...@leclan.ch> + +_gemname=yard +pkgname=ruby-yard +pkgver=0.9.9 +pkgrel=2 +pkgdesc='YARD is a Ruby Documentation tool. The Y stands for "Yay!"' +url='https://github.com/lsegal/yard' +arch=('any') +license=('MIT') +depends=('ruby') +options=('!emptydirs') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/lsegal/yard/archive/v${pkgver}.tar.gz) +sha256sums=('e75485e980cfe3ae1de00541357c7b69851e1a3730b2b96462e433cd7358cd2c') +sha512sums=('1ca970c9a1207fd12855659b98f3fc233bad76cc6afb8a7524d98c67b9190d0469173ab911cf813b6e7817e6c95da518fe4e285b72a48e09fd8ab12db84dfc98') + +prepare() { + cd ${_gemname}-${pkgver} + sed -r 's|~>|>=|g' -i ${_gemname}.gemspec # don't give a fuck about rubys bla bla +} + +build() { + cd ${_gemname}-${pkgver} + gem build ${_gemname}.gemspec +} + +package() { + cd ${_gemname}-${pkgver} + local _gemdir="$(gem env gemdir)" + gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem + install -Dm 644 README.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}" + cp -a docs/* "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem" +} + +# vim: ts=2 sw=2 et: