From 57fa358891b0a42208b32281ec67bd832fb33c98 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 10 Oct 2022 20:08:07 +0200 Subject: community/ruby: reenabled ruby and patched for installing in proper native libary paths --- community/ruby-digest/PKGBUILD | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'community/ruby-digest') diff --git a/community/ruby-digest/PKGBUILD b/community/ruby-digest/PKGBUILD index 6285a5a7..40c4a4e2 100644 --- a/community/ruby-digest/PKGBUILD +++ b/community/ruby-digest/PKGBUILD @@ -14,6 +14,11 @@ eval "$( ' )" -# break test circle of dependencies on ourselves.. ;-) -checkdepends=(${checkdepends[@]//ruby-digest/}) -unset check +# move native code to proper place (where ruby expects it) +eval "$( + declare -f package | \ + sed ' + /local _gemdir.*/ a local _install_platform="$(ruby --disable-all -e '"'"'puts RUBY_PLATFORM'"'"')" + s|${pkgdir}/usr/lib/ruby/${_extension_api_version}/${_platform}|${pkgdir}/usr/lib/ruby/${_extension_api_version}/${_install_platform}|g + ' +)" -- cgit v1.2.3-70-g09d2