Created
September 8, 2016 18:42
-
-
Save nbrownus/86cfe95f0f6724204d1d86391b71bc3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
VERSION="1.7.1" | |
BUILD="slack1" | |
set -e -x | |
DIRNAME="$(cd "$(dirname "$0")" && pwd)" | |
OLDESTPWD="$PWD" | |
cd "$(mktemp -d)" | |
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM | |
curl -LO "https://storage.googleapis.com/golang/go${VERSION}.linux-amd64.tar.gz" | |
mkdir -p "$PWD/rootfs/usr/local" | |
tar -C "$PWD/rootfs/usr/local" -xvf "go${VERSION}.linux-amd64.tar.gz" | |
fakeroot fpm -C "$PWD/rootfs" \ | |
-m "Nate Brown <[email protected]>" \ | |
-n "go" -v "$VERSION-$BUILD" \ | |
-p "$OLDESTPWD/go_${VERSION}-${BUILD}_amd64.deb" \ | |
-s "dir" -t "deb" \ | |
"usr" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment