1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
6 pkgdesc='Secret User Agent of HTTP'
8 url='https://github.com/lostisland/sawyer'
10 depends=(ruby-faraday ruby-addressable)
11 checkdepends=(ruby-minitest ruby-rake)
13 source=(https://github.com/lostisland/sawyer/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
14 sha256sums=('678923b7de572da916a445d5ee422d6270c5a6a7d913b2a7274c697b569384ab')
17 local _gemdir="$(gem env gemdir)"
19 gem build sawyer.gemspec
23 --ignore-dependencies \
25 --install-dir "tmp_install/$_gemdir" \
26 --bindir "tmp_install/usr/bin" \
28 find "tmp_install/$_gemdir/gems/" \
35 -iname "gem.build_complete" -o \
39 rm -r tmp_install/$_gemdir/cache
43 local _gemdir="$(gem env gemdir)"
45 GEM_HOME="tmp_install/$_gemdir" rake
50 cp -a tmp_install/* "$pkgdir"/
51 install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/