diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-12-31 17:29:39 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-12-31 17:29:39 -0300 |
commit | 6f102d1647580e0bb9513c124b26a64c77da4f15 (patch) | |
tree | 0340f1f588be251183fe2b251bdba778f2c85c22 /pcr/ruby-hiera/PKGBUILD | |
parent | 433900b14f11dc9ee55b72e8e5946bf47f65b636 (diff) | |
parent | b6cb10de275cea63bab0bee2a98342afa4fdc4ee (diff) | |
download | abslibre-6f102d1647580e0bb9513c124b26a64c77da4f15.tar.gz abslibre-6f102d1647580e0bb9513c124b26a64c77da4f15.tar.bz2 abslibre-6f102d1647580e0bb9513c124b26a64c77da4f15.zip |
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Diffstat (limited to 'pcr/ruby-hiera/PKGBUILD')
-rw-r--r-- | pcr/ruby-hiera/PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pcr/ruby-hiera/PKGBUILD b/pcr/ruby-hiera/PKGBUILD new file mode 100644 index 000000000..c4d51fe44 --- /dev/null +++ b/pcr/ruby-hiera/PKGBUILD @@ -0,0 +1,34 @@ +# Contributor: Jochen Schalanda <jochen+aur@schalanda.name> +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +_gemname=hiera +pkgname=ruby-$_gemname +pkgver=1.1.1 +pkgrel=1 +pkgdesc="A pluggable data store for hierarcical data." +arch=(any) +url='http://projects.puppetlabs.com/projects/hiera/' +license=('MIT') +depends=('ruby') +makedepends=('rubygems') +source=( + "http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" + 'hiera.yaml') +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" + + # Create hiera default directory + install -d $pkgdir/var/lib/hiera + + # Create hiera default configuration + install -d $pkgdir/etc + install -m 644 $srcdir/hiera.yaml $pkgdir/etc/ +} |