[arch-commits] Commit in ruby-augeas/repos (2 files)
Christian Rebischke
shibumi at archlinux.org
Tue Dec 12 21:06:18 UTC 2017
Date: Tuesday, December 12, 2017 @ 21:06:17
Author: shibumi
Revision: 274020
archrelease: copy trunk to community-x86_64
Added:
ruby-augeas/repos/community-x86_64/
ruby-augeas/repos/community-x86_64/PKGBUILD
(from rev 274019, ruby-augeas/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: ruby-augeas/repos/community-x86_64/PKGBUILD (from rev 274019, ruby-augeas/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2017-12-12 21:06:17 UTC (rev 274020)
@@ -0,0 +1,39 @@
+# Maintainer : Christian Rebischke <Chris.Rebischke at archlinux.org>
+# Contributor: Greg Sutcliffe <greg.sutcliffe at gmail dot com>
+
+_gemname=ruby-augeas
+pkgname="$_gemname"
+pkgver=0.5.0
+pkgrel=1
+pkgdesc="Provides Ruby bindings for augeas"
+arch=('x86_64')
+url="http://augeas.net"
+license=('LGPL')
+depends=('ruby' 'augeas')
+makedepends=('rubygems')
+source=("https://rubygems.org/downloads/$_gemname-${pkgver//_/-}.gem")
+noextract=("$_gemname-$pkgver.gem")
+sha512sums=('523742368543c617baa2b393e4682451d7fe20aecbcf9ab50fed0f5575119b3fbc06f79f0894cca728d2fee7d441cdd9f075dbcf81628835ba870930c3d2ac8d')
+
+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"
+}
+
+
+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"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list