summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 70e8982b69478aaeee488cee4186949249ef0348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Generated by gem2arch (https://github.com/anatol/gem2arch)
# Maintainer: Artem Vorotnikov <artem@vorotnikov.me>

_gemname=fog-json
pkgname=ruby-$_gemname
pkgver=1.0.2
pkgrel=1
pkgdesc='JSON parsing for fog providers'
arch=(any)
url='http://github.com/fog/fog-json'
license=(MIT)
depends=(ruby ruby-fog-core ruby-multi_json)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha512sums=('7b57c2caa8f8ccccf2225d308ab77b35ed00f43937086d59c9d5431b221d6e2a7f2b79db9dc9e924399db213844066fc9a147fab1c177e2468c8609bc4b8ad84')

package() {
  local _gemdir="$(ruby -e'puts Gem.default_dir')"
  gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
  rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
  install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
  install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}