[arch-commits] Commit in ruby-augeas/trunk (PKGBUILD)

Tim Meusel bastelfreak at archlinux.org
Sun May 16 11:46:32 UTC 2021


    Date: Sunday, May 16, 2021 @ 11:46:31
  Author: bastelfreak
Revision: 935749

cleanup PKGBUILD

Modified:
  ruby-augeas/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++-----------------
 1 file changed, 9 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-16 11:39:25 UTC (rev 935748)
+++ PKGBUILD	2021-05-16 11:46:31 UTC (rev 935749)
@@ -1,13 +1,14 @@
-# Maintainer : Christian Rebischke <Chris.Rebischke at archlinux.org>
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: 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=5
-pkgdesc="Provides Ruby bindings for augeas"
+pkgrel=6
+pkgdesc='Provides Ruby bindings for augeas'
 arch=('x86_64')
-url="http://augeas.net"
+url='https://augeas.net'
 license=('LGPL')
 depends=('ruby' 'augeas')
 makedepends=('rubygems' 'ruby-rdoc')
@@ -14,6 +15,7 @@
 source=("https://rubygems.org/downloads/$_gemname-${pkgver//_/-}.gem")
 noextract=("$_gemname-$pkgver.gem")
 sha512sums=('523742368543c617baa2b393e4682451d7fe20aecbcf9ab50fed0f5575119b3fbc06f79f0894cca728d2fee7d441cdd9f075dbcf81628835ba870930c3d2ac8d')
+options=(!emptydirs)
 
 package() {
   cd "$srcdir"
@@ -21,19 +23,9 @@
   # the system, makepkg will exit with an error when sourcing the PKGBUILD.
   local _gemdir="$(ruby -e'puts Gem.default_dir')"
 
-  gem install --no-user-install --ignore-dependencies -i "${pkgdir}${_gemdir}" \
-    -n "${pkgdir}/usr/bin" "${_gemname}-${pkgver//_/-}.gem"
+  gem install --no-user-install --ignore-dependencies --install-dir "${pkgdir}${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver//_/-}.gem"
+  rm -rf ${pkgdir}/${_gemdir}/extensions/*/*/${_gemname}-${pkgver}/{mkmf.log,gem_make.out}
+  rm -rf "${pkgdir}/${_gemdir}/cache"
 }
 
-
-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 -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