diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-06-09 19:35:27 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-06-09 19:35:27 +0000 |
commit | 9d8145ce431a34e88096705f0870ef04a7cf6f1e (patch) | |
tree | 0170b2d7bf366ccfc905ad29db6f002709892240 /pkg.build | |
parent | 52bc516d224ef4d11311e7d18e479442657ad488 (diff) | |
download | midipix_build-9d8145ce431a34e88096705f0870ef04a7cf6f1e.tar.bz2 midipix_build-9d8145ce431a34e88096705f0870ef04a7cf6f1e.tar.xz |
Followup to <c288dfb0f33ef4a713680190b5b2e2ca69cfb171>:
- Disable linking bash and coreutils statically until the necessary
fixes to psxstub and psxscl have been committed upstream.
Replace non-portable `tar -axf' invokations with {bunzip2,gunzip,xz} -d
| tar -xf - depending on the ${PKG_FNAME} file extension.
Diffstat (limited to 'pkg.build')
-rw-r--r-- | pkg.build | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -20,7 +20,21 @@ if test_cmd pkg_${PKG_NAME}_finish; then elif [ "${PKG_URL_TYPE:-wget}" = wget ] &&\ ! is_build_script_done extract; then rm_if_exists ${PKG_SUBDIR}; - tar -axf ${PKG_FNAME}; + if [ "${PKG_FNAME##*.tar.}" = "bz2" ]; then + bunzip2 -d < ${PKG_FNAME} | tar -xf -; + elif [ "${PKG_FNAME##*.tar.}" = "gz" ]; then + gunzip -d < ${PKG_FNAME} | tar -xf -; + elif [ "${PKG_FNAME##*.tar.}" = "xz" ]; then + xz -d < ${PKG_FNAME} | tar -xf -; + elif [ "${PKG_FNAME##*.t}" = "bz2" ]; then + bunzip2 -d < ${PKG_FNAME} | tar -xf -; + elif [ "${PKG_FNAME##*.t}" = "gz" ]; then + gunzip -d < ${PKG_FNAME} | tar -xf -; + elif [ "${PKG_FNAME##*.t}" = "xz" ]; then + xz -d < ${PKG_FNAME} | tar -xf -; + else + tar -xf ${PKG_FNAME}; + fi; if test_cmd pkg_${PKG_NAME}_extract_post; then pkg_${PKG_NAME}_extract_post; fi; |