add KEEP_LOCALE and KEEP_DOC

This commit is contained in:
emmett1
2021-03-31 00:29:21 +08:00
parent e2588ff9c8
commit 1234389c38
2 changed files with 14 additions and 2 deletions

View File

@@ -343,6 +343,14 @@ packaging() {
find . ! -type d -name "*.la" -delete
fi
if [ "$KEEP_LOCALE" = 0 ] || [ "$KEEP_LOCALE" = "no" ]; then
rm -fr usr/share/locale usr/locale
fi
if [ "$KEEP_DOC" = 0 ] || [ "$KEEP_DOC" = "no" ]; then
rm -fr usr/share/doc usr/share/gtk-doc usr/doc usr/gtk-doc
fi
if [ "$NO_STRIP" = 0 ] || [ "$NO_STRIP" = "no" ]; then
strip_files
fi
@@ -677,9 +685,11 @@ SOURCE_DIR="/var/cache/scratchpkg/sources"
PACKAGE_DIR="/var/cache/scratchpkg/packages"
WORK_DIR="/var/cache/scratchpkg/work"
COMPRESSION_MODE="xz"
KEEP_LIBTOOL="no"
NO_STRIP="no"
IGNORE_MDSUM="no"
KEEP_LIBTOOL="no"
KEEP_LOCALE="no"
KEEP_DOC="no"
INCLUDEINPKG="install readme mkdirs"

View File

@@ -11,6 +11,8 @@
# WORK_DIR="/var/cache/scratchpkg/work"
# CURL_OPTS=""
# COMPRESSION_MODE="xz"
# KEEP_LIBTOOL="no"
# NO_STRIP="no"
# IGNORE_MDSUM="no"
# KEEP_LIBTOOL="no"
# KEEP_LOCALE="no"
# KEEP_DOC="no"