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

Levente Polyak anthraxx at archlinux.org
Sun Jan 1 00:19:13 UTC 2017


    Date: Sunday, January 1, 2017 @ 00:19:13
  Author: anthraxx
Revision: 203427

archrelease: copy trunk to community-any

Added:
  ruby-celluloid-extras/repos/community-any/
  ruby-celluloid-extras/repos/community-any/PKGBUILD
    (from rev 203426, ruby-celluloid-extras/trunk/PKGBUILD)

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

Copied: ruby-celluloid-extras/repos/community-any/PKGBUILD (from rev 203426, ruby-celluloid-extras/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-01-01 00:19:13 UTC (rev 203427)
@@ -0,0 +1,40 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_gemname=celluloid-extras
+pkgname=ruby-${_gemname}
+pkgver=0.20.5
+pkgrel=2
+pkgdesc='Classes to support examples, benchmarks, or add special functionality'
+url='https://github.com/celluloid/celluloid-extras'
+arch=('any')
+license=('MIT')
+depends=('ruby' 'ruby-timers')
+makedepends=('git')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/celluloid/celluloid-extras/archive/v${pkgver}.tar.gz
+        culture-git::"git+https://github.com/celluloid/culture#commit=29baead42e0ce86b09ed94fe9bcb23160749565d")
+sha512sums=('99f78a8f5761d205acc5ec1a2e88889eca59b7c4c979e959f691c60e7700dd06ad72afa88d785451bbf0ec554f6fdb2e7f2fae5870020ad0a6676522832f6767'
+            '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