Date: Wednesday, January 3, 2018 @ 07:34:48 Author: foutrelis Revision: 277934
archrelease: copy trunk to community-staging-any Added: ruby-thor/repos/community-staging-any/ ruby-thor/repos/community-staging-any/PKGBUILD (from rev 277932, ruby-thor/trunk/PKGBUILD) ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Copied: ruby-thor/repos/community-staging-any/PKGBUILD (from rev 277932, ruby-thor/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2018-01-03 07:34:48 UTC (rev 277934) @@ -0,0 +1,36 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> + +_gemname=thor +pkgname=ruby-thor +pkgver=0.20.0 +pkgrel=2 +pkgdesc='Toolkit for building powerful command-line interfaces' +url='https://github.com/erikhuda/thor' +arch=('any') +license=('MIT') +depends=('ruby') +options=('!emptydirs') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/erikhuda/thor/archive/v${pkgver}.tar.gz) +sha256sums=('5fb1c7b6184be26bcfa2dbafa5ae6624fb5e3970fa8210a208c7f4d803c681f3') +sha512sums=('aa5344c94cad7c33dd0582409dbcf9bd109bf97b37131357a4cc8a66317acf8781460e8fe5532b301a74521010be59bb34ac1c68bc01ad3140bfe73fedc2a451') + +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}" + install -Dm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}" + rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem" +} + +# vim: ts=2 sw=2 et: