Date: Monday, January 9, 2017 @ 18:43:16 Author: foutrelis Revision: 206225
archrelease: copy trunk to community-staging-any Added: ruby-timers/repos/community-staging-any/ ruby-timers/repos/community-staging-any/PKGBUILD (from rev 206224, ruby-timers/trunk/PKGBUILD) ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Copied: ruby-timers/repos/community-staging-any/PKGBUILD (from rev 206224, ruby-timers/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2017-01-09 18:43:16 UTC (rev 206225) @@ -0,0 +1,36 @@ +# 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=3 +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') +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: