1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
6 pkgdesc='Simple wrapper for the GitHub API'
8 url='https://github.com/octokit/octokit.rb'
10 depends=(ruby-faraday ruby-sawyer)
11 makedepends=(ruby-rake)
12 checkdepends=(ruby-awesome_print ruby-yard ruby-rexml ruby-jwt ruby-mime-types ruby-multi_json
13 ruby-netrc ruby-rb-fsevent ruby-rbnacl ruby-rspec ruby-simplecov ruby-vcr ruby-webmock
14 ruby-pry-byebug ruby-redcarpet ruby-rss)
16 source=(https://github.com/octokit/octokit.rb/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
17 sha256sums=('2b027e74d91bf177b8d3c23882b5074a19cf0757d63f071e03e391b386443c20')
20 local _gemdir="$(gem env gemdir)"
22 gem build octokit.gemspec
26 --ignore-dependencies \
28 --install-dir "tmp_install/$_gemdir" \
29 --bindir "tmp_install/usr/bin" \
31 find "tmp_install/$_gemdir/gems/" \
38 -iname "gem.build_complete" -o \
42 rm -r tmp_install/$_gemdir/cache
46 local _gemdir="$(gem env gemdir)"
48 GEM_HOME="tmp_install/$_gemdir" rake
53 cp -a tmp_install/* "$pkgdir"/
54 install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/