Date: Thursday, December 27, 2018 @ 05:10:12 Author: felixonmars Revision: 418326
archrelease: copy trunk to community-staging-any Added: ruby-timers/repos/community-staging-any/ ruby-timers/repos/community-staging-any/PKGBUILD (from rev 418325, ruby-timers/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: ruby-timers/repos/community-staging-any/PKGBUILD (from rev 418325, ruby-timers/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2018-12-27 05:10:12 UTC (rev 418326) @@ -0,0 +1,37 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Hugo Osvaldo Barrera <h...@barrera.io> + +_gemname=timers +pkgname=ruby-${_gemname} +pkgver=4.1.2 +pkgrel=5 +pkgdesc='Schedule procs to run after a certain time, or at periodic intervals, using any API that accepts a timeout' +url='https://github.com/celluloid/timers' +arch=('any') +license=('MIT') +depends=('ruby' 'ruby-hitimes') +makedepends=('ruby-rdoc') +options=('!emptydirs') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/celluloid/timers/archive/v${pkgver}.tar.gz) +sha512sums=('4f3fae32e868fbf87a4e02767b3ebdb04a30596f3668d8e0d1ad70d59e3c590de42a89d9773e6a830cf34ab68f063663839775a5618e832b871dc976c670e6af') + +prepare() { + cd ${_gemname}-${pkgver} + sed 's|git ls-files|find|' -i ${_gemname}.gemspec +} + +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 CHANGES.md -t "${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: