[arch-commits] Commit in (4 files)

Levente Polyak anthraxx at archlinux.org
Sun Jan 1 00:29:06 UTC 2017


    Date: Sunday, January 1, 2017 @ 00:29:05
  Author: anthraxx
Revision: 203430

addpkg: ruby-celluloid-pool 0.20.5-2

Added:
  ruby-celluloid-pool/
  ruby-celluloid-pool/repos/
  ruby-celluloid-pool/trunk/
  ruby-celluloid-pool/trunk/PKGBUILD

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

Added: ruby-celluloid-pool/trunk/PKGBUILD
===================================================================
--- ruby-celluloid-pool/trunk/PKGBUILD	                        (rev 0)
+++ ruby-celluloid-pool/trunk/PKGBUILD	2017-01-01 00:29:05 UTC (rev 203430)
@@ -0,0 +1,40 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_gemname=celluloid-pool
+pkgname=ruby-${_gemname}
+pkgver=0.20.5
+pkgrel=2
+pkgdesc='Implementation of an actor pool, based on the Celluloid concurrent object framework'
+url='https://github.com/celluloid/celluloid-pool'
+arch=('any')
+license=('MIT')
+depends=('ruby' 'ruby-timers')
+makedepends=('git')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/celluloid/celluloid-pool/archive/v${pkgver}.tar.gz
+        culture-git::"git+https://github.com/celluloid/culture#commit=d76f772a2d669be2028d8be1c8baa95f7d3174a0")
+sha512sums=('6bded1ee7bfeaebddd49af9c5d72d078da9ebd6817cebd6124f95c0303e20ea31417930e71680e9d75bd0ce21689e7b409cd13132d8f802d51b9eced67a79ae5'
+            'SKIP')
+
+prepare() {
+  cd ${_gemname}-${pkgver}
+  sed 's|git ls-files -z|find -not -path "*culture*" -print0|' -i ${_gemname}.gemspec
+  rmdir culture
+  cp -ra "${srcdir}/culture-git" culture
+}
+
+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.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list