24 lines
673 B
Bash
24 lines
673 B
Bash
#!/bin/bash
|
|
if ! type include >/dev/null 2>&1; then
|
|
include() {
|
|
. "$(cd "$(dirname "$1")" && pwd)/${2}"
|
|
}
|
|
fi
|
|
include "${BASH_SOURCE[0]}" ../build_script/pragma_once.bash
|
|
if ! pragma_once "${BASH_SOURCE[0]}"; then
|
|
return 0
|
|
fi
|
|
include "${BASH_SOURCE[0]}" ../build_script/base/export.bash
|
|
init_build_environment
|
|
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}"
|