[arch-commits] Commit in ruby-async-io/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Jan 7 00:59:09 UTC 2019
Date: Monday, January 7, 2019 @ 00:59:09
Author: felixonmars
Revision: 420790
archrelease: copy trunk to community-staging-any
Added:
ruby-async-io/repos/community-staging-any/
ruby-async-io/repos/community-staging-any/PKGBUILD
(from rev 420789, ruby-async-io/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: ruby-async-io/repos/community-staging-any/PKGBUILD (from rev 420789, ruby-async-io/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-01-07 00:59:09 UTC (rev 420790)
@@ -0,0 +1,38 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_gemname=async-io
+pkgname=ruby-${_gemname}
+pkgver=1.16.3
+pkgrel=2
+pkgdesc='Provides support for asynchonous TCP, UDP, UNIX and SSL sockets'
+url='https://github.com/socketry/async-io'
+arch=('any')
+license=('MIT')
+depends=('ruby' 'ruby-async')
+makedepends=('ruby-rdoc')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/socketry/async-io/archive/v${pkgver}.tar.gz)
+sha256sums=('337f9bb7020df00e0f4228f5728835352b3d452ed61b7538e197c6a55e9893aa')
+sha512sums=('710f304e79760c022c29583435e488f100c62bb3a298b417bfb82d9fd2189123fe29bbcd28ac4965c0a159c9724bf4f84e3f7cdc589ff95c56bad94b80bc1c6a')
+
+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}"
+ install -Dm 644 README.md -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