# 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