|
|
@ -26,6 +26,9 @@ dir_wrapper_pkgtools="$PWD" # Where the packages should be stored |
|
|
|
_astronaut_wrapper_pre() { |
|
|
|
# Make sure to remove the contents of the install directory before building |
|
|
|
_astronaut_nuke_install=true |
|
|
|
|
|
|
|
# Define an option to strip the package |
|
|
|
define_option 'strip: Strip the resulting binaries' |
|
|
|
} |
|
|
|
|
|
|
|
_astronaut_wrapper_post() { |
|
|
@ -40,7 +43,9 @@ _astronaut_wrapper_post() { |
|
|
|
fi |
|
|
|
|
|
|
|
# Strip binaries |
|
|
|
find "$dir_install" | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |
|
|
|
if option strip; then |
|
|
|
find "$dir_install" | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |
|
|
|
fi |
|
|
|
|
|
|
|
# Generate slack-desc for proper compliance, even if it's completely redundant |
|
|
|
#mkdir -p "$dir_install/install" |
|
|
|