From 84545eed8c0ef0c45d241cee4052952266b8b1bc Mon Sep 17 00:00:00 2001 From: mid-kid Date: Wed, 7 Dec 2016 19:01:17 +0100 Subject: [PATCH] Strip binaries and use txz compression --- astronaut/astronautpkg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/astronaut/astronautpkg b/astronaut/astronautpkg index 817e882..f9f92eb 100755 --- a/astronaut/astronautpkg +++ b/astronaut/astronautpkg @@ -30,6 +30,9 @@ if [ -d "$dir_install/$dir_prefix/$dir_infodir" ]; then gzip -9 -r "$dir_install/$dir_prefix/$dir_infodir" 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 + # Generate slack-desc for proper compliance, even if it's completely redundant #mkdir -p "$dir_install/install" #cat > "$dir_install/install/slack-desc" << EOF @@ -58,4 +61,4 @@ fi [ "$dir_wrapper_pkgtools" ] && mkdir -p "$dir_wrapper_pkgtools" || dir_wrapper_pkgtools="$_topdir" cd "$dir_install" -PATH="$PATH:/sbin" $_fakeroot makepkg -l y -c n "$dir_wrapper_pkgtools/$_satname-$(echo "$version" | sed -e 's/-/_/g')-$(uname -m)-astro.tgz" +PATH="$PATH:/sbin" $_fakeroot makepkg -l y -c n "$dir_wrapper_pkgtools/$_satname-$(echo "$version" | sed -e 's/-/_/g')-$(uname -m)-astro.txz"