Browse Source

Add option to disable stripping binaries

master
mid-kid 7 years ago
parent
commit
02bb59616b
  1. 5
      astronaut/astronautpkg
  2. 3
      satellites/docker.sat
  3. 3
      satellites/go-md2man.sat
  4. 3
      satellites/go.sat
  5. 3
      satellites/syncthing.sat

5
astronaut/astronautpkg

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

3
satellites/docker.sat

@ -16,6 +16,9 @@ version_libnetwork=7b2b1feb1de4817d522cc372af149ff48d25028e
update_url="https://github.com/$name/$name-ce/releases"
update_names="/archive/v$version.tar.gz"
# Go doesn't like being stripped
options="!strip,$options"
dlextract "https://github.com/$name/$name-ce/archive/v$version/$name-$version.tar.gz" \
'e0df90392b2daa545562342dabf181cf'
dlextract "https://github.com/opencontainers/runc/archive/$version_runc/runc-$version_runc.tar.gz" \

3
satellites/go-md2man.sat

@ -3,6 +3,9 @@ version=1.0.7
update_url="https://github.com/cpuguy83/$name/releases"
update_names="/archive/v$version.tar.gz"
# Go doesn't like being stripped
options="!strip,$options"
dlextract "https://github.com/cpuguy83/$name/archive/v$version/$name-$version.tar.gz" \
'2282a7a24635c63ca7bb08b5e07282fc'
_

3
satellites/go.sat

@ -4,6 +4,9 @@ version=$majver.3
bootstrap_version=1.4.3
update_url='https://golang.org/dl/'
# Go doesn't like being stripped
options="!strip,$options"
define_option '!bootstrap: Bootstrap this program'
dlextract "https://storage.googleapis.com/golang/$name$version.src.tar.gz" \

3
satellites/syncthing.sat

@ -2,6 +2,9 @@ name=syncthing
version=0.14.37
update_url="https://github.com/$name/$name/releases"
# Go doesn't like being stripped
options="!strip,$options"
dlextract "https://github.com/$name/$name/releases/download/v$version/$name-source-v$version.tar.gz" \
'7c73632aa1d9c5a1c1824ace7516be86'
extrafile 'syncthing-browser.desktop'

Loading…
Cancel
Save