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

Tim Meusel bastelfreak at gemini.archlinux.org
Tue Aug 3 07:53:46 UTC 2021


    Date: Tuesday, August 3, 2021 @ 07:53:46
  Author: bastelfreak
Revision: 993449

archrelease: copy trunk to community-testing-any

Added:
  ruby-faraday-em_http/repos/community-testing-any/
  ruby-faraday-em_http/repos/community-testing-any/PKGBUILD
    (from rev 993448, ruby-faraday-em_http/trunk/PKGBUILD)

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

Copied: ruby-faraday-em_http/repos/community-testing-any/PKGBUILD (from rev 993448, ruby-faraday-em_http/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-08-03 07:53:46 UTC (rev 993449)
@@ -0,0 +1,46 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+
+_gemname='faraday-em_http'
+pkgname="ruby-${_gemname}"
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='About Faraday adapter for EventMachine::HttpRequest'
+arch=('any')
+url="https://github.com/lostisland/${_gemname}"
+license=('MIT')
+depends=('ruby')
+checkdepends=('ruby-rspec' 'ruby-faraday' 'ruby-webmock' 'ruby-multipart-parser')
+options=('!emptydirs')
+source=("${url}/archive/v${pkgver}/${_gemname}-v${pkgver}.tar.gz")
+sha512sums=('0b352b49cf04b32769959727fb445416ae4a325dfdcb7e3494cfad664dac40acd4e5202dd6e55caccf1b07e491dcd76b8e72a7cf3ba02986ef3e18200c596c14')
+
+prepare() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+
+  # drop broken/cirular dependencies
+  sed --in-place '/add_development_dependency/d' "${_gemname}.gemspec"
+}
+
+build() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  gem build "${_gemname}.gemspec"
+}
+
+check() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  # tests don't yet pass because some em-http is missing in the repos
+  # we run the tests in ruby-faraday
+  # rspec
+}
+
+package() {
+cd "${srcdir}/${_gemname}-${pkgver}"
+  local _gemdir="$(gem env gemdir)"
+  gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
+
+  install -Dm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+  rm -rf "${pkgdir}/${_gemdir}/cache"
+}



More information about the arch-commits mailing list