[arch-commits] Commit in ruby27-rake/trunk (PKGBUILD)

Tim Meusel bastelfreak at archlinux.org
Sat May 15 23:39:17 UTC 2021


    Date: Saturday, May 15, 2021 @ 23:39:17
  Author: bastelfreak
Revision: 934842

Fix conflicting bin names

Modified:
  ruby27-rake/trunk/PKGBUILD

----------+
 PKGBUILD |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-15 23:05:23 UTC (rev 934841)
+++ PKGBUILD	2021-05-15 23:39:17 UTC (rev 934842)
@@ -4,7 +4,7 @@
 _gemname=rake
 pkgname=ruby27-$_gemname
 pkgver=13.0.3
-pkgrel=1
+pkgrel=2
 pkgdesc='Make-like build tool implemented in Ruby'
 provides=(rake)
 arch=(any)
@@ -18,7 +18,8 @@
 
 package() {
   local _gemdir="$(ruby-2.7 -e'puts Gem.default_dir')"
-  gem-2.7 install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
+  gem-2.7 install --ignore-dependencies --no-user-install --no-document --install-dir "$pkgdir/$_gemdir" --bindir "$pkgdir/usr/bin" $_gemname-$pkgver.gem
   rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
   install -Dm 644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/MIT-LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+  mv "${pkgdir}/usr/bin/rake" "${pkgdir}/usr/bin/ruby27-rake"
 }



More information about the arch-commits mailing list