diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2017-09-06 16:23:29 +0200 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2017-09-06 16:23:29 +0200 |
commit | 378facbd9fd64c357a7a38c0130893e3b807ff71 (patch) | |
tree | ce7289e1b77414dc7dd0c6fca8acdd74694a3122 /vars/install_strip_host.vars | |
parent | d080d13396454fe3871f393bf442d3e157c7d2e0 (diff) | |
download | midipix_build-378facbd9fd64c357a7a38c0130893e3b807ff71.tar.bz2 midipix_build-378facbd9fd64c357a7a38c0130893e3b807ff71.tar.xz |
build.sh, subr/{post_strip,pkg_{install_pre,strip}.subr: strip(1) after install for each package to save disk space.
vars/build.vars, vars/install_....vars: install coreutils_flavour_minipix w/ newly added ${TARGET}-install-strip to save disk space.
Diffstat (limited to 'vars/install_strip_host.vars')
-rw-r--r-- | vars/install_strip_host.vars | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vars/install_strip_host.vars b/vars/install_strip_host.vars new file mode 100644 index 00000000..f8d6ca8e --- /dev/null +++ b/vars/install_strip_host.vars @@ -0,0 +1,16 @@ +# +# set -o errexit -o noglob are assumed. +# + +pkg_install_strip_host_install() { + if [ -e "${PREFIX}/bin/${TARGET}-install-strip" ]; then + build_fileop rm "${PREFIX}/bin/${TARGET}-install-strip"; + fi; + cat > "${PREFIX}/bin/${TARGET}-install-strip" <<EOF +#!/bin/sh +install -s "\${@}"; +EOF + chmod +x "${PREFIX}/bin/${TARGET}-install-strip"; +}; + +# vim:filetype=sh |