1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-11-09 16:48:05 +01:00
void-packages/common/build-style/ruby-module.sh

14 lines
389 B
Bash
Raw Permalink Normal View History

2024-03-29 08:12:19 +01:00
#
# This helper is for templates installing ruby modules.
#
do_install() {
local _vendorlibdir=$(ruby -e 'puts RbConfig::CONFIG["vendorlibdir"]')
if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
_vendorlibdir="${_vendorlibdir//lib$XBPS_WORDSIZE/lib$XBPS_TARGET_WORDSIZE}"
fi
LANG=C ruby install.rb --destdir=${DESTDIR} --sitelibdir=${_vendorlibdir} ${make_install_args}
}