From 969bd2f61e0bfbe3b5666b13f9d8923f7846fd62 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 8 Oct 2022 08:30:28 +0200 Subject: community/ruby-rake*: another try on /opt --- community/ruby-rake/PKGBUILD | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'community/ruby-rake') diff --git a/community/ruby-rake/PKGBUILD b/community/ruby-rake/PKGBUILD index 013d5c83..e76fc93c 100644 --- a/community/ruby-rake/PKGBUILD +++ b/community/ruby-rake/PKGBUILD @@ -1,8 +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 - /_gemdir/ a mkdir -p "${pkgdir}"/usr/bin/ + s|local _gemdir.*|local _gemdir="/opt/${pkgname}-${pkgver}/lib/ruby/gems/3.0.0"|g + /local _gemdir/ a mkdir -p "${pkgdir}"/opt/${pkgname}-${pkgver}/bin + /local _gemdir/ a mkdir -p "${pkgdir}"/usr/bin ' )" -- cgit v1.2.3-70-g09d2