diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-09-26 10:48:02 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-09-26 10:48:02 -0400 |
| commit | 06fd4a903b11d06c66c51207883b0b8f1d4f2fb7 (patch) | |
| tree | 1d20efad6386edf655b4afaa3d98cdc2ef451092 /muslbuild/upx | |
| parent | 03976ecac8e5b062936f692f45768da512d89421 (diff) | |
| download | dotfiles-06fd4a903b11d06c66c51207883b0b8f1d4f2fb7.tar.gz dotfiles-06fd4a903b11d06c66c51207883b0b8f1d4f2fb7.tar.xz | |
Add muslbuild, a small set of shell scripts to statically build a few things against musl libc
Diffstat (limited to 'muslbuild/upx')
| -rwxr-xr-x | muslbuild/upx | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/muslbuild/upx b/muslbuild/upx new file mode 100755 index 0000000..6c4e98b --- /dev/null +++ b/muslbuild/upx @@ -0,0 +1,26 @@ +#!/bin/sh +set -e +set -x +relver="3.96" +build_dir="/v/muslbuild/jq" + +if ! [ -d "$build_dir" ] ; then + mkdir -p "$build_dir" +fi +cd "$build_dir" + +arLoc="https://github.com/upx/upx/releases/download/v%s/upx-%s-amd64_linux.tar.xz" +arLoc="$(printf "$arLoc\n" "$relver" "$relver")" +arFn="upx-${relver}-amd64_linux.tar.xz" + +checksum=ac75f5172c1c530d1b5ce7215ca9e94586c07b675a26af3b97f8421b8b8d413d + +if ! [ -e "$arFn" ] ; then + curl -L -o "$arFn" "$arLoc" +fi + +echo "${checksum} $arFn" | sha256sum -c + +tar xJvf "$arFn" +cd "upx-${relver}-amd64_linux" +cp upx "$HOME/bin/upx" |
