[arch-commits] Commit in (4 files)
Tim Meusel
bastelfreak at archlinux.org
Sun May 16 11:39:14 UTC 2021
Date: Sunday, May 16, 2021 @ 11:39:14
Author: bastelfreak
Revision: 935747
add ruby27-augeas
Added:
ruby27-augeas/
ruby27-augeas/repos/
ruby27-augeas/trunk/
ruby27-augeas/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Added: ruby27-augeas/trunk/PKGBUILD
===================================================================
--- ruby27-augeas/trunk/PKGBUILD (rev 0)
+++ ruby27-augeas/trunk/PKGBUILD 2021-05-16 11:39:14 UTC (rev 935747)
@@ -0,0 +1,27 @@
+# Maintainer : Christian Rebischke <Chris.Rebischke at archlinux.org>
+# Contributor: Greg Sutcliffe <greg.sutcliffe at gmail dot com>
+
+_gemname=ruby-augeas
+pkgname=ruby27-augeas
+pkgver=0.5.0
+pkgrel=1
+pkgdesc='Provides Ruby bindings for augeas'
+arch=('x86_64')
+url='https://augeas.net'
+license=('LGPL')
+depends=('ruby2.7' 'augeas')
+makedepends=('ruby27-rdoc')
+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-2.7 -e'puts Gem.default_dir')"
+
+ gem-2.7 install --no-user-install --ignore-dependencies --install-dir "${pkgdir}${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver//_/-}.gem"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list