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

_gemname=hiera-puppet
pkgname=ruby-$_gemname
pkgver=1.0.0
pkgrel=1
pkgdesc='Puppet query interface and backend for Hiera'
arch=(any)
url='https://github.com/puppetlabs/hiera-puppet'
license=()
depends=(ruby ruby-hiera-1)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha512sums=('026360185ed6c172713a543ab8296d835d878487dc74533edd038c7c7fd6211dc9fa3edd6abba6e3aff9ceb5f8ce5d5228f599c3b4546c51758e73fbcf1f531f')

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