upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / ruby-octokit / trunk / PKGBUILD
blob49a6fb518b5a9662a893c3de369b53c8481ef8cd
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-octokit
4 pkgver=6.1.1
5 pkgrel=1
6 pkgdesc='Simple wrapper for the GitHub API'
7 arch=(any)
8 url='https://github.com/octokit/octokit.rb'
9 license=(MIT)
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)
15 options=(!emptydirs)
16 source=(https://github.com/octokit/octokit.rb/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
17 sha256sums=('2b027e74d91bf177b8d3c23882b5074a19cf0757d63f071e03e391b386443c20')
19 build() {
20   local _gemdir="$(gem env gemdir)"
21   cd octokit.rb-$pkgver
22   gem build octokit.gemspec
23   gem install \
24     --local \
25     --verbose \
26     --ignore-dependencies \
27     --no-user-install \
28     --install-dir "tmp_install/$_gemdir" \
29     --bindir "tmp_install/usr/bin" \
30     octokit-$pkgver.gem
31   find "tmp_install/$_gemdir/gems/" \
32     -type f \
33     \( \
34         -iname "*.o" -o \
35         -iname "*.c" -o \
36         -iname "*.so" -o \
37         -iname "*.time" -o \
38         -iname "gem.build_complete" -o \
39         -iname "Makefile" \
40     \) \
41     -delete
42   rm -r tmp_install/$_gemdir/cache
45 check() {
46   local _gemdir="$(gem env gemdir)"
47   cd octokit.rb-$pkgver
48   GEM_HOME="tmp_install/$_gemdir" rake
51 package() {
52   cd octokit.rb-$pkgver
53   cp -a tmp_install/* "$pkgdir"/
54   install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/