[arch-commits] Commit in ruby-faraday-patron/repos (2 files)
Tim Meusel
bastelfreak at gemini.archlinux.org
Fri Jan 21 11:19:29 UTC 2022
Date: Friday, January 21, 2022 @ 11:19:29
Author: bastelfreak
Revision: 1111983
archrelease: copy trunk to community-testing-any
Added:
ruby-faraday-patron/repos/community-testing-any/
ruby-faraday-patron/repos/community-testing-any/PKGBUILD
(from rev 1111982, ruby-faraday-patron/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: ruby-faraday-patron/repos/community-testing-any/PKGBUILD (from rev 1111982, ruby-faraday-patron/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2022-01-21 11:19:29 UTC (rev 1111983)
@@ -0,0 +1,47 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+
+_gemname='faraday-patron'
+pkgname="ruby-${_gemname}"
+pkgver=2.0.1
+pkgrel=1
+pkgdesc='About Faraday adapter for Patron'
+arch=('any')
+url="https://github.com/lostisland/${_gemname}"
+license=('MIT')
+depends=('ruby')
+makedepends=('ruby-rspec')
+checkdepends=('ruby-faraday' 'ruby-webmock' 'ruby-multipart-parser')
+options=('!emptydirs')
+source=("${url}/archive/v${pkgver}/${_gemname}-v${pkgver}.tar.gz")
+sha512sums=('dd6736c74b1dab42894abee7f830a23ba4773c0bf97af060b738e9b404015d4ae15998e60463c219814cf5abbaaa57a550824b4b78d4fc06b35f1041a91db5e3')
+
+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 patron 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