summaryrefslogtreecommitdiffhomepage
path: root/207.libz.build
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-02-06 13:10:41 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-02-06 14:22:08 +0100
commitbd43d02c5f32a6d4d3f11ebcac4588ff77069173 (patch)
tree9c35f711c7a5dabb14f49e1385189c4fe570e3c2 /207.libz.build
parentfa26eefbefcfdbac1922dedc67e52acb6f5d8177 (diff)
downloadmidipix_build-bd43d02c5f32a6d4d3f11ebcac4588ff77069173.tar.bz2
midipix_build-bd43d02c5f32a6d4d3f11ebcac4588ff77069173.tar.xz
- Added sha256sum (1) file verification logic to parse_with_pkg_name(), fetch(), and the respective build scripts (cheers sortie.)
- Renamed ${..._VERSION} variables to ${PKG_..._VERSION} to prevent namespace collision (cheers drewrichardson.) - Use log_msg() in check_prereqs() in build.subr.
Diffstat (limited to '207.libz.build')
-rw-r--r--207.libz.build12
1 files changed, 7 insertions, 5 deletions
diff --git a/207.libz.build b/207.libz.build
index 416acdf6..231baf2f 100644
--- a/207.libz.build
+++ b/207.libz.build
@@ -1,15 +1,17 @@
if is_build_script_done finished; then
exit 212;
elif [ "x${2}" = "xlibz" ]; then
- _pkg_url="https://sortix.org/libz/release/libz-${LIBZ_VERSION}.tar.gz";
+ _pkg_url="https://sortix.org/libz/release/libz-${PKG_LIBZ_VERSION}.tar.gz";
_pkg_fname="${_pkg_url##*/}";
- _pkg_subdir="${2}-${LIBZ_VERSION}";
+ _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-${GZIP_VERSION}.tar.gz";
+ _pkg_url="https://ftp.gnu.org/gnu/gzip/gzip-${PKG_GZIP_VERSION}.tar.gz";
_pkg_fname="${_pkg_url##*/}";
- _pkg_subdir="${2}-${GZIP_VERSION}";
+ _pkg_sha256sum="${PKG_GZIP_SHA256SUM}";
+ _pkg_subdir="${2}-${PKG_GZIP_VERSION}";
fi;
-fetch "${_pkg_url}";
+fetch "${_pkg_url}" "${_pkg_sha256sum}";
if ! is_build_script_done extracted; then
rm_if_exists "${_pkg_fname%%.tar*}";
tar -axf "${_pkg_fname}";