diff options
author | aurelien <tek@localhost.localdomain> | 2012-11-22 18:56:54 +0100 |
---|---|---|
committer | aurelien <tek@localhost.localdomain> | 2012-11-22 18:56:54 +0100 |
commit | 8298bee7828000bf1ab55304695872472883ab65 (patch) | |
tree | deb47595e25e8acddff6fce94a403c918e6d909f /pcr/ruby-hiera-json/PKGBUILD | |
parent | f97ff910471fb3ae2c8ea69befecaae8cbf6dbea (diff) | |
download | abslibre-8298bee7828000bf1ab55304695872472883ab65.tar.gz abslibre-8298bee7828000bf1ab55304695872472883ab65.tar.bz2 abslibre-8298bee7828000bf1ab55304695872472883ab65.zip |
+ facter puppet ruby-hiera-json ruby-hiera ruby-shadow
Diffstat (limited to 'pcr/ruby-hiera-json/PKGBUILD')
-rw-r--r-- | pcr/ruby-hiera-json/PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pcr/ruby-hiera-json/PKGBUILD b/pcr/ruby-hiera-json/PKGBUILD new file mode 100644 index 000000000..4d80244c8 --- /dev/null +++ b/pcr/ruby-hiera-json/PKGBUILD @@ -0,0 +1,26 @@ +# Contributor: Jochen Schalanda <jochen+aur@schalanda.name> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO> + +_gemname=hiera-json +pkgname=ruby-$_gemname +pkgver=0.4.0 +pkgrel=1 +pkgdesc='Store Hiera data in JSON' +arch=(any) +url='http://projects.puppetlabs.com/projects/hiera/' +license=('MIT') +depends=('ruby') +makedepends=('rubygems' 'ruby-hiera') +source=(http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) + +package() { + cd "$srcdir" + # _gemdir is defined inside package() because if ruby[gems] is not installed on + # the system, makepkg will exit with an error when sourcing the PKGBUILD. + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + + gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" \ + -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem" +} + |