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

Evangelos Foutras foutrelis at archlinux.org
Wed Jan 3 08:11:32 UTC 2018


    Date: Wednesday, January 3, 2018 @ 08:11:31
  Author: foutrelis
Revision: 278049

archrelease: copy trunk to community-staging-any

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

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

Copied: ruby-async/repos/community-staging-any/PKGBUILD (from rev 278048, ruby-async/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-01-03 08:11:31 UTC (rev 278049)
@@ -0,0 +1,36 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_gemname=async
+pkgname=ruby-${_gemname}
+pkgver=1.2.0
+pkgrel=2
+pkgdesc='Composable asynchronous I/O'
+url='https://github.com/socketry/async'
+arch=('any')
+license=('MIT')
+depends=('ruby' 'ruby-nio4r' 'ruby-timers')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/socketry/async/archive/v${pkgver}.tar.gz)
+sha256sums=('06bedecd8ead36a4c3f437f9da7985bddb4fca72121f638ce186d9c73bc7c952')
+sha512sums=('9ef5f7bc3ee81cdb377a43e352e8e8b75d23469156d3ae204cb2fbf1ebf92168387fd25575ee3c135e3f5f709907c7db7dfe732b8dad6434ad779633c8197fbe')
+
+prepare() {
+  cd ${_gemname}-${pkgver}
+  sed 's|git ls-files|find|' -i ${_gemname}.gemspec
+  sed 's|~>|>=|g' -i ${_gemname}.gemspec # don't give a fuck about rubys bla bla
+}
+
+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}"
+  rm "${pkgdir}"/${_gemdir}/cache/${_gemname}-${pkgver}.gem
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list