X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/202a1fb5d3efb4affe66cabc1f5ed33de0db1d80..0d25a03f1129c0949f0d7d3ab6dd98651d802b4a:/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