X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/2572f2bcff5a9a55c5e88b3018204bd171d16b42..a0c80d57cb2b00b9015809f31584c79feb8c3df8:/build-package.sh?ds=sidebyside diff --git a/build-package.sh b/build-package.sh index 474c0710..ed6266d3 100755 --- a/build-package.sh +++ b/build-package.sh @@ -448,13 +448,22 @@ termux_step_massage () { # Remove lib/charset.alias which is installed by gettext-using packages: rm -f lib/charset.alias + # Remove non-english man pages: test -d share/man && (cd share/man; for f in `ls | grep -v man`; do rm -Rf $f; done ) - # Remove info pages and other docs: - rm -Rf share/info share/doc share/locale + + if [ -z ${TERMUX_PKG_KEEP_INFOPAGES+x} ]; then + # Remove info pages: + rm -Rf share/info + fi + + # Remove other docs: + rm -Rf share/doc share/locale + # Remove old kept libraries (readline): find . -name '*.old' -delete - # .. remove static libraries: + + # Remove static libraries: if [ $TERMUX_PKG_KEEP_STATIC_LIBRARIES = "false" ]; then find . -name '*.a' -delete find . -name '*.la' -delete