Date: Friday, March 19, 2021 @ 22:07:03 Author: felixonmars Revision: 895222
archrelease: copy trunk to community-staging-any Added: ruby-nats-pure/repos/community-staging-any/ ruby-nats-pure/repos/community-staging-any/LICENSE (from rev 895219, ruby-nats-pure/trunk/LICENSE) ruby-nats-pure/repos/community-staging-any/PKGBUILD (from rev 895219, ruby-nats-pure/trunk/PKGBUILD) ----------+ LICENSE | 21 +++++++++++++++++++++ PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) Copied: ruby-nats-pure/repos/community-staging-any/LICENSE (from rev 895219, ruby-nats-pure/trunk/LICENSE) =================================================================== --- community-staging-any/LICENSE (rev 0) +++ community-staging-any/LICENSE 2021-03-19 22:07:03 UTC (rev 895222) @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016-2017 Apcera Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. Copied: ruby-nats-pure/repos/community-staging-any/PKGBUILD (from rev 895219, ruby-nats-pure/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2021-03-19 22:07:03 UTC (rev 895222) @@ -0,0 +1,53 @@ +# Maintainer: Thore Bödecker <fox...@archlinux.org> +# Contributor: Tim Meusel <t...@bastelfreak.de> + +_gemname='nats-pure' +pkgname="ruby-${_gemname}" +pkgver=0.6.2 +pkgrel=4 +pkgdesc="Ruby client for the NATS messaging system" +url="https://github.com/nats-io/nats-pure.rb" +arch=('any') +license=('MIT') +depends=('ruby') +makedepends=('ruby-rake' 'ruby-rspec' 'ruby-bundler' 'ruby-rdoc' 'ruby-test-unit') +options=('!emptydirs') +source=("${_gemname}-v${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha512sums=('98f498c9eafeaa4ac5543a4a322d6c44015a10adc338ee125efcfdb8fb609435c6d771f4d9709f8477c673f3e44ccda8ecad186dac47d278d7d47da0461fefba') + + +prepare() { + cd "${srcdir}/${_gemname}.rb-${pkgver}" + : +} + +build() { + cd "${srcdir}/${_gemname}.rb-${pkgver}" + mkdir -p pkg + gem build -o "pkg/${_gemname}-${pkgver}.gem" +} + +check() { + cd "${srcdir}/${_gemname}.rb-${pkgver}" + # testsuite requires a running nats server to test against + #rake spec +} + +package() { + cd "${srcdir}/${_gemname}.rb-${pkgver}" + local _gemdir="$(gem env gemdir)" + + gem install \ + --verbose \ + --ignore-dependencies \ + --no-user-install \ + --install-dir "${pkgdir}/${_gemdir}" \ + --bindir "${pkgdir}/usr/bin" \ + "pkg/${_gemname}-${pkgver}.gem" + + rm -rf "${pkgdir}/${_gemdir}/cache" + + install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim: ts=2 sw=2 et: