Browse Source

Strip binaries and use txz compression

master
mid-kid 8 years ago
parent
commit
84545eed8c
  1. 5
      astronaut/astronautpkg

5
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"

Loading…
Cancel
Save