diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-07-19 08:32:07 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-07-19 08:40:42 +0000 |
commit | f42965c7189c8fbbce85f268a96a94a504de9737 (patch) | |
tree | 479ce74d1c2766c3f23838362d539576744750ea /999.tarballs.build | |
parent | e2a4f22ec8f0bcf0cbcfeaeacf4be5d6e42ef2c7 (diff) | |
download | midipix_build-f42965c7189c8fbbce85f268a96a94a504de9737.tar.bz2 midipix_build-f42965c7189c8fbbce85f268a96a94a504de9737.tar.xz |
- Additionally install ncursesw and ntctty into ${PREFIX_MINIPIX} and create Minipix tarball
in 999.tarballs.build which solely contains ${PREFIX_MINIPIX}.
- Adds {bash,coreutils}_static which are linked statically and installed to ${PREFIX_MINIPIX}
as opposed to {bash_coreutils} which are not linked statically and installed to ${PREFIX_NATIVE}.
- Adds file v5.28.
- Add support for ${PREFIX_MINIPIX} to midipix.sh (either automatically detected or specified via -m.)
- Adds verbosity flag -v wrt. secure_{cd,rm}() and insecure_mkdir().
- Build slibtool{_host,} w/ `--prefix='.
- Export ${ARG_TARBALL} instead of special-casing build level 9.
- Fix mc configure failure (error: could not determine how to read list of mounted file systems.)
Diffstat (limited to '999.tarballs.build')
-rw-r--r-- | 999.tarballs.build | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/999.tarballs.build b/999.tarballs.build index 09930d1e..a15a6349 100644 --- a/999.tarballs.build +++ b/999.tarballs.build @@ -23,10 +23,11 @@ else log_msg failexit "Unknown tarball suffix \`.${TARBALL_SUFFIX}'."; fi; +PREFIX_BASENAME=${PREFIX_NATIVE##*/}; TARBALL_FNAME=${TARBALL_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.${TARBALL_SUFFIX}; +TARBALL_MINIPIX_FNAME=${TARBALL_MINIPIX_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.${TARBALL_SUFFIX}; TARBALL_SRC_FNAME=${TARBALL_SRC_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.${TARBALL_SUFFIX}; -PREFIX_BASENAME=${PREFIX_NATIVE##*/}; secure_rm ${PREFIX_BASENAME}/lib.bak; insecure_mkdir ${PREFIX_BASENAME}/lib.bak; tar -C ${PREFIX_BASENAME}/lib -cpf - . | tar -C ${PREFIX_BASENAME}/lib.bak -xpf -; @@ -54,16 +55,27 @@ fi; secure_rm ${PREFIX_BASENAME}/lib; mv -- ${PREFIX_BASENAME}/lib.bak ${PREFIX_BASENAME}/lib; log_msg info "Restored ${PREFIX_BASENAME}/lib."; +tar -cpf - minipix \ + "Create \`Midipix mintty shell' shortcut.vbs" midipix.sh README |\ +${TARBALL_COMPRESS_CMD} ${TARBALL_COMPRESS_ARGS} -c > ${TARBALL_MINIPIX_FNAME}; +log_msg info "Finished building binary Minipix distribution tarball."; +if [ -x "$(which gpg 2>/dev/null)" -a -n "${TARBALL_MINIPIX_SIGN_GPG_KEY}" ] &&\ + gpg --list-keys "${TARBALL_MINIPIX_SIGN_GPG_KEY}" >/dev/null 2>&1; then + gpg --armor --passphrase-file /dev/null \ + --local-user "${TARBALL_MINIPIX_SIGN_GPG_KEY}" --sign ${TARBALL_MINIPIX_FNAME}; + log_msg info "Signed binary Minipix distribution tarball."; +fi; + if [ "${BUILD}" = "debug" ]; then log_msg info "Building source tarball..."; - tar -cpf - $(find tmp -mindepth 2 -maxdepth 2 \ - -not -path tmp/.\* \ - -not -path tmp/ntctty/.git -not -path tmp/psxscl/.git) |\ + tar -cpf - $(find tmp -mindepth 2 -maxdepth 2 \ + -not -path tmp/.\* \ + -not -path tmp/ntctty/.git -not -path tmp/psxscl/.git) |\ ${TARBALL_COMPRESS_CMD} ${TARBALL_COMPRESS_ARGS} -c > ${TARBALL_SRC_FNAME}; log_msg info "Finished building source tarball."; if [ -x "$(which gpg 2>/dev/null)" -a -n "${TARBALL_SRC_SIGN_GPG_KEY}" ] &&\ gpg --list-keys "${TARBALL_SRC_SIGN_GPG_KEY}" >/dev/null 2>&1; then - gpg --armor --passphrase-file /dev/null \ + gpg --armor --passphrase-file /dev/null \ --local-user "${TARBALL_SRC_SIGN_GPG_KEY}" --sign ${TARBALL_SRC_FNAME}; log_msg info "Signed source tarball."; fi; |