Last active
October 10, 2015 17:48
-
-
Save rcrowley/3728417 to your computer and use it in GitHub Desktop.
Go binary distribution Debian packaging
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
VERSION="1.4.2" | |
BUILD="slack1" | |
set -e -x | |
cd "$(mktemp -d)" | |
trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM | |
curl -O "https://storage.googleapis.com/golang/go$VERSION.linux-amd64.tar.gz" | |
tar xf "go$VERSION.linux-amd64.tar.gz" | |
fakeroot fpm -m "Richard Crowley <[email protected]>" \ | |
-n "go" -v "$VERSION-$BUILD" \ | |
-p "$OLDPWD/go_${VERSION}-${BUILD}_amd64.deb" \ | |
--prefix "/usr" \ | |
-s "dir" -t "deb" "go" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment