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

_gemname_='hiera-json'
pkgname="ruby-${_gemname_}"
pkgver='0.4.0'
pkgrel=2
pkgdesc='JSON backend for the Hiera hierarcical data store'
arch=('any')
url='https://github.com/puppetlabs/hiera-json/'
license=('unknown')
depends=('ruby' 'ruby-hiera' 'ruby-json')
options=(!emptydirs)
source=("https://rubygems.org/downloads/${_gemname_}-${pkgver}.gem")
noextract=("${_gemname_}-${pkgver}.gem")
sha256sums=('2698c1133a6ce3fd7b839696502df9776d51e038b3868e9dbddba835902cad4c')

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"
}