diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-21 19:01:43 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-21 19:01:43 +0000 |
commit | 022f7e6fb1af4d2f2fca4176b04ac5c38da12b93 (patch) | |
tree | 904805b92d2be8d1c73e2f69fe58f62955108823 /subr/pkg_install.subr | |
parent | f31496ef4e9a393607c8c6e6dcaef6101a273b88 (diff) | |
download | midipix_build-022f7e6fb1af4d2f2fca4176b04ac5c38da12b93.tar.bz2 midipix_build-022f7e6fb1af4d2f2fca4176b04ac5c38da12b93.tar.xz |
subr/pkg_*.subr, vars/{apr,git}.vars: supply & reference ${PKG_DESTDIR}.
Diffstat (limited to 'subr/pkg_install.subr')
-rw-r--r-- | subr/pkg_install.subr | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr index 6635e4f2..fa890d4d 100644 --- a/subr/pkg_install.subr +++ b/subr/pkg_install.subr @@ -3,12 +3,14 @@ # pkg_install() { - build_fileop mkdir "${PKG_PREFIX}"; - tar -C ../destdir -cpf - . | tar -C "${PKG_PREFIX}" -xpf -; - if [ -n "${PKG_PREFIX_EXTRA}" ]; then - build_fileop mkdir "${PKG_PREFIX_EXTRA}"; - tar -C ../destdir -cpf - . | tar -C "${PKG_PREFIX_EXTRA}" -xpf -; - fi; + local _dst_path; + for _dst_path in "${PKG_PREFIX}" "${PKG_PREFIX_EXTRA}"; do + if [ -n "${_dst_path}" ]; then + build_fileop mkdir "${_dst_path}"; + tar -C "${PKG_DESTDIR}" -cpf - . |\ + tar -C "${_dst_path}" -xpf -; + fi; + done; }; # vim:filetype=sh |