1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
5 _commit=6828083e8db2d2c5f7ea1db7143a9e1a9d13ef78
7 pkgdesc='Ruby HTTP client library based on libcurl'
9 url='https://github.com/toland/patron'
12 makedepends=(git ruby-rake-compiler ruby-rack ruby-rspec ruby-puma ruby-yard)
14 source=(git+https://github.com/toland/patron.git#commit=$_commit
15 $pkgname-puma-5.patch)
17 '85977d0082234adb7b31308c4338f870a6ae30c3f2182c81d7c1736c33c0dc25')
21 patch -p1 -i ../$pkgname-puma-5.patch
22 # we don't do version pinning
23 sed -r -e 's|~>|>=|g' -i patron.gemspec
27 local _gemdir="$(gem env gemdir)"
33 --ignore-dependencies \
35 --install-dir "tmp_install/$_gemdir" \
36 --bindir "tmp_install/usr/bin" \
37 pkg/patron-$pkgver.gem
38 find "tmp_install/$_gemdir/gems/" \
45 -iname "gem.build_complete" -o \
52 local _gemdir="$(gem env gemdir)"
54 # https://github.com/toland/patron/pull/193
55 GEM_HOME="tmp_install/$_gemdir" rake spec || echo "Tests failed"
60 cp -a tmp_install/* "$pkgdir"/
62 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/