From 238503a5a57423359dd7f9cbde4ca032fb526efc Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 8 Oct 2022 15:31:23 +0200 Subject: community/rubygems: set PATH to find ruby in bootstrap, avoid installing ruby itself --- community/rubygems/PKGBUILD | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 community/rubygems/PKGBUILD (limited to 'community') diff --git a/community/rubygems/PKGBUILD b/community/rubygems/PKGBUILD new file mode 100644 index 00000000..e4a5d80a --- /dev/null +++ b/community/rubygems/PKGBUILD @@ -0,0 +1,13 @@ +# building with ruby-bootstrap in /opt/ruby-xxx, but install into /usr +# and depend on 'ruby' +makedepends=(ruby-bootstrap) + +# install to final destination in /usr and not into /opt/ruby-xxx +eval "$( + declare -f package | \ + sed ' + s|local _gemdir.*|local _gemdir="/usr/lib/ruby/gems/3.0.0"|g + ' +)" + +unset check -- cgit v1.2.3-54-g00ecf