From abe9ef3e15a61423f6cd385ae257a9b7e003930f Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Wed, 19 Feb 2020 22:21:44 +0000 Subject: kiss: Remove KISS_RM I never really liked how this was implemented and it's rather limited in its use. It was cumbersome to edit the list to make even a minor change. Instead, I now recommend using 'KISS_HOOK'. It gives you total control. KISS_RM can be implemented on a per-package basis, for all packages overall or conditionally. You're also not limited to a simple list of removals. You can do whatever you like pre- and post- build. Here's an example script to get you started. There is more information in the manual and README. case $TYPE in pre-build) case $PKG in zlib) export CFLAGS="-Os -static" ;; curl) export CFLAGS="-O3" ;; esac ;; post-build) : "${DEST:?DEST is unset}" rm -rf "$DEST/usr/share/doc" rm -rf "$DEST/usr/share/gettext" ;; esac FossilOrigin-Name: ab2d04dbc4be059d1d5dd9a1758defb5205433a6a6a1fa941412b82583f7df7b --- README.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index abbc93f..3885b68 100644 --- a/README.md +++ b/README.md @@ -70,17 +70,6 @@ See: # add your own repositories or remove the default ones. export KISS_PATH=/var/db/kiss/repo/core:/var/db/kiss/repo/extra:/var/db/kiss/repo/xorg -# Delete junk from packages. -# -# This works exactly like '$PATH' (Colon separated). -# -# A list of paths and files to remove from built packages. -# -# Set this to a blank value to keep all of the below files -# and directories around. This can be customized to keep or -# remove whatever you like. -export KISS_RM=usr/share/doc:usr/share/gtk-doc:usr/share/info:usr/share/polkit-1:usr/share/gettext:usr/share/locale:etc/bash_completion.d:usr/share/zsh - # Force package installation or removal. # # This can be used to bypass the dependency checks on installation @@ -119,7 +108,10 @@ export KISS_AUDIT=0 # ;; # # post-build) -# # post-build code here. +# : "${DEST:?DEST is unset}" +# +# rm -rf "$DEST/usr/share/doc" +# rm -rf "$DEST/usr/share/gettext" # ;; # esac # -- cgit v1.2.3