summaryrefslogtreecommitdiffhomepage
path: root/207.libz.build
diff options
context:
space:
mode:
Diffstat (limited to '207.libz.build')
-rw-r--r--207.libz.build8
1 files changed, 5 insertions, 3 deletions
diff --git a/207.libz.build b/207.libz.build
index 7b5de832..5dbd2b65 100644
--- a/207.libz.build
+++ b/207.libz.build
@@ -1,11 +1,13 @@
if is_build_script_done finished; then
exit 212;
-elif [ "x${3}" = "xlibz" ]; then
+elif [ "x${2}" = "xlibz" ]; then
_pkg_url="https://sortix.org/libz/release/libz-${LIBZ_VERSION}.tar.gz";
_pkg_fname="${_pkg_url##*/}";
-elif [ "x${3}" = "xgzip" ]; then
+ _pkg_subdir="${2}-${LIBZ_VERSION}";
+elif [ "x${2}" = "xgzip" ]; then
_pkg_url="ftp://ftp.gnu.org/gnu/gzip/gzip-${GZIP_VERSION}.tar.gz";
_pkg_fname="${_pkg_url##*/}";
+ _pkg_subdir="${2}-${GZIP_VERSION}";
fi;
fetch "${_pkg_url}";
if ! is_build_script_done extracted; then
@@ -18,7 +20,7 @@ if ! is_build_script_done configured; then
rm_if_exists -c -m "${_build_dir}";
cp -a "../portage/config.cache" .;
CFLAGS="${CFLAGS_PACKAGES}" \
- "../${LIBZ_VERSION}/configure" \
+ "../${_pkg_subdir}/configure" \
--host="${HOST_NATIVE}" \
--prefix="" \
--target="${TARGET}";