#!/bin/bash if ! type "include" > /dev/null 2>&1; then include() { . "$(cd "$(dirname "$1")" && pwd)/${2}"; }; fi include "${BASH_SOURCE[0]}" ../base/export.bash if ! pragma_once ${BASH_SOURCE[0]}; then return 0; source ../base/export.bash fi packageName="patchelf" version="0.15.0" _src="${_src_}/${packageName}-${version}" _install="${_install_}/${packageName}-${version}" git clone --branch "${version}" https://github.com/NixOS/patchelf.git "${_src}" cd "${_src}" || exit ./bootstrap.sh ./configure --prefix="${_install}" make -j"$(nproc)" sudo make install sudo chmod -R 777 "${_install}"