From 708f3a36657b62ef51f420a5f7349e677661290c Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 6 Oct 2022 16:45:55 +0200 Subject: community/ruby-rake: building for ruby-bootstrap into /opt first --- community/ruby-bigdecimal/PKGBUILD | 12 ++++++++++++ community/ruby-cgi/PKGBUILD | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 community/ruby-bigdecimal/PKGBUILD create mode 100644 community/ruby-cgi/PKGBUILD diff --git a/community/ruby-bigdecimal/PKGBUILD b/community/ruby-bigdecimal/PKGBUILD new file mode 100644 index 00000000..f41379db --- /dev/null +++ b/community/ruby-bigdecimal/PKGBUILD @@ -0,0 +1,12 @@ +# bootstrapping with ruby-bootstrap in /opt/ruby-xxx +depends=(${depends[@]//ruby/}) +depends+='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 + ' +)" + diff --git a/community/ruby-cgi/PKGBUILD b/community/ruby-cgi/PKGBUILD new file mode 100644 index 00000000..f41379db --- /dev/null +++ b/community/ruby-cgi/PKGBUILD @@ -0,0 +1,12 @@ +# bootstrapping with ruby-bootstrap in /opt/ruby-xxx +depends=(${depends[@]//ruby/}) +depends+='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 + ' +)" + -- cgit v1.2.3-70-g09d2