diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-02-06 15:11:56 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-02-06 15:11:56 +0100 |
commit | 6e940c2c85759ac197c29d335a929dd06822a9df (patch) | |
tree | 1253fde47e8c61b0c2d62f44bb193bd5507beeef /207.libz.build | |
parent | bd43d02c5f32a6d4d3f11ebcac4588ff77069173 (diff) | |
download | midipix_build-6e940c2c85759ac197c29d335a929dd06822a9df.tar.bz2 midipix_build-6e940c2c85759ac197c29d335a929dd06822a9df.tar.xz |
- 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).
Diffstat (limited to '207.libz.build')
-rw-r--r-- | 207.libz.build | 42 |
1 files changed, 21 insertions, 21 deletions
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; |