From 6e940c2c85759ac197c29d335a929dd06822a9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Sat, 6 Feb 2016 15:11:56 +0100 Subject: - Changed sha256sum (1) file verification logic to use dgst(1SSL) instead. - Removed support for particularly pathnames with whitespace or tab cha- racters. If you have whitespaces in your pathnames anyway, the script will methodically destroy every single file on your disk(s). --- 207.libz.build | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to '207.libz.build') diff --git a/207.libz.build b/207.libz.build index 231baf2f..2c29870c 100644 --- a/207.libz.build +++ b/207.libz.build @@ -1,31 +1,31 @@ if is_build_script_done finished; then exit 212; elif [ "x${2}" = "xlibz" ]; then - _pkg_url="https://sortix.org/libz/release/libz-${PKG_LIBZ_VERSION}.tar.gz"; - _pkg_fname="${_pkg_url##*/}"; - _pkg_sha256sum="${PKG_LIBZ_SHA256SUM}"; - _pkg_subdir="${2}-${PKG_LIBZ_VERSION}"; + _pkg_url=https://sortix.org/libz/release/libz-${PKG_LIBZ_VERSION}.tar.gz; + _pkg_fname=${_pkg_url##*/}; + _pkg_sha256sum=${PKG_LIBZ_SHA256SUM}; + _pkg_subdir=${2}-${PKG_LIBZ_VERSION}; elif [ "x${2}" = "xgzip" ]; then - _pkg_url="https://ftp.gnu.org/gnu/gzip/gzip-${PKG_GZIP_VERSION}.tar.gz"; - _pkg_fname="${_pkg_url##*/}"; - _pkg_sha256sum="${PKG_GZIP_SHA256SUM}"; - _pkg_subdir="${2}-${PKG_GZIP_VERSION}"; + _pkg_url=https://ftp.gnu.org/gnu/gzip/gzip-${PKG_GZIP_VERSION}.tar.gz; + _pkg_fname=${_pkg_url##*/}; + _pkg_sha256sum=${PKG_GZIP_SHA256SUM}; + _pkg_subdir=${2}-${PKG_GZIP_VERSION}; fi; -fetch "${_pkg_url}" "${_pkg_sha256sum}"; +fetch ${_pkg_url} ${_pkg_sha256sum}; if ! is_build_script_done extracted; then - rm_if_exists "${_pkg_fname%%.tar*}"; - tar -axf "${_pkg_fname}"; + rm_if_exists ${_pkg_fname%%.tar*}; + tar -axf ${_pkg_fname}; set_build_script_done extracted -patched; fi; if ! is_build_script_done configured; then - set_build_dir "${_pkg_fname%%-*}" "${TARGET}"; - rm_if_exists -c -m "${_build_dir}"; - cp -a "../portage/config.cache" .; + set_build_dir ${_pkg_fname%%-*} ${TARGET}; + rm_if_exists -c -m ${_build_dir}; + cp -a ../portage/config.cache .; CFLAGS="${CFLAGS_PACKAGES}" \ - "../${_pkg_subdir}/configure" \ - --host="${HOST_NATIVE}" \ - --prefix="" \ - --target="${TARGET}"; + ../${_pkg_subdir}/configure \ + --host=${HOST_NATIVE} \ + --prefix= \ + --target=${TARGET}; set_build_script_done configured -built; fi; if ! is_build_script_done built; then @@ -33,15 +33,15 @@ if ! is_build_script_done built; then make -j18; elif [ "x${3}" = "xgzip" ]; then make clean; - make CFLAGS="-g3 -O0 -I${PREFIX_NATIVE}/include" LDFLAGS="--sysroot=${PREFIX_NATIVE}"; + make CFLAGS="-g3 -O0 -I${PREFIX_NATIVE}/include" LDFLAGS=--sysroot=${PREFIX_NATIVE}; fi; set_build_script_done built -installed; fi; if ! is_build_script_done installed; then if [ "x${3}" = "xlibz" ]; then - make -j18 DESTDIR="${PREFIX_NATIVE}" install; + make -j18 DESTDIR=${PREFIX_NATIVE} install; elif [ "x${3}" = "xgzip" ]; then - cp -a gunzip gzip zcat "${PREFIX_NATIVE}/bin"; + cp -a gunzip gzip zcat ${PREFIX_NATIVE}/bin; fi; set_build_script_done installed finished; fi; -- cgit v1.2.3