From 480a87235c03c4b7b6c4ae7d04ec0216424d6470 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 5 Aug 2024 09:00:37 +0200 Subject: [PATCH] recipe for patchelf added --- recipes/130-patchelf | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 recipes/130-patchelf diff --git a/recipes/130-patchelf b/recipes/130-patchelf new file mode 100755 index 0000000..a6ffe23 --- /dev/null +++ b/recipes/130-patchelf @@ -0,0 +1,42 @@ +#!/bin/bash +# +# https://github.com/NixOS/patchelf +# +P=patchelf +V=${PATCHELF_VERSION:-0.12} +FNAME="$P-$V.tar.xz" +DOWNLOAD_URL="https://github.com/NixOS/$P/archive/$V.tar.gz" + +#--- +# build on Linux only +[[ $(uname -s) == 'Linux' ]] || exit 0 + +#--- +source "$(dirname "$0")/librecipes.bash" + +cd "${SRC_DIR}" +./bootstrap.sh + +#--- +# configure +mkdir -p "${BUILD_DIR}" && cd "$_" || exit ${PB_ERR_SYSTEM} +loadablesdir="${PREFIX}/${UTILBIN_DIR}/builtins" \ +"${SRC_DIR}/configure" \ + --prefix="${PREFIX}" \ + --bindir="${PREFIX}/${UTILBIN_DIR}" \ + || exit ${PB_ERR_CONFIGURE} + +#--- +# compile & install +make -j ${NJOBS} || exit ${PB_ERR_MAKE} +make install || exit ${PB_ERR_INSTALL} + +#--- +# post-install +#rm -vf "${PREFIX}/share/man/man1/find.1" + +#--- +# Local Variables: +# mode: shell-script-mode +# sh-basic-offset: 8 +# End: