[arch-commits] Commit in ruby-timers/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Dec 26 00:34:35 UTC 2019


    Date: Thursday, December 26, 2019 @ 00:34:35
  Author: felixonmars
Revision: 541640

archrelease: copy trunk to community-staging-any

Added:
  ruby-timers/repos/community-staging-any/
  ruby-timers/repos/community-staging-any/PKGBUILD
    (from rev 541637, ruby-timers/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: ruby-timers/repos/community-staging-any/PKGBUILD (from rev 541637, ruby-timers/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-12-26 00:34:35 UTC (rev 541640)
@@ -0,0 +1,42 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
+
+_gemname=timers
+pkgname=ruby-${_gemname}
+pkgver=4.3.0
+pkgrel=2
+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=(https://github.com/celluloid/timers/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('58cda357826f8744a673f0abae9e9670d38cf125b90668c06de12a14666ede000b62f79be004593ae04154c8cf5db0992da0f7cb5739120d4f95c8fb04397e75')
+
+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 -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
+
+  cd "${pkgdir}/${_gemdir}"
+  rm -rf cache gems/${_gemname}-${pkgver}/{ext,lib/*/*.so} \
+    extensions/*/*/${_gemname}-${pkgver}/{mkmf.log,gem_make.out}
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list