diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2017-10-15 16:16:13 +1100 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2017-10-15 16:16:13 +1100 |
commit | d7f431bbda84d3dd7412c64fd39979030653b1f6 (patch) | |
tree | 343013b14289b3cd84bbe74983eeee6e70e79974 /ghc/Pkgfile | |
parent | 69e5fe609cc3933586fa9fb1cd55ef47f723fe51 (diff) | |
download | contrib-d7f431bbda84d3dd7412c64fd39979030653b1f6.tar.gz contrib-d7f431bbda84d3dd7412c64fd39979030653b1f6.tar.xz |
ghc: 8.0.1 -> 8.2.1
Diffstat (limited to 'ghc/Pkgfile')
-rw-r--r-- | ghc/Pkgfile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ghc/Pkgfile b/ghc/Pkgfile index 7ed82db22..157d7685b 100644 --- a/ghc/Pkgfile +++ b/ghc/Pkgfile @@ -5,8 +5,10 @@ # Depends on: docbook-xsl libedit libffi libgmp readline name=ghc -version=8.0.1 +version=8.2.1 release=1 +_bootstrapsum=88ea8d351cf1ed7d93ac6618c8114d08c6402676fe9b7cd8d02dc1365cb52fd1 +#curl -s http://downloads.haskell.org/~ghc/$version/SHA256SUMS | grep ./ghc-$version-x86_64-centos67-linux.tar.xz | cut -d' ' -f1 source=(https://downloads.haskell.org/~ghc/$version/$name-$version-src.tar.xz) build() { @@ -18,6 +20,11 @@ build() { wget http://downloads.haskell.org/~ghc/$version/$name-$version-x86_64-centos67-linux.tar.xz \ --output-document="$PKGMK_SOURCE_DIR/$name-$version-x86_64-centos67-linux.tar.xz" + + if [ $_bootstrapsum != $(sha256sum "$PKGMK_SOURCE_DIR/$name-$version-x86_64-centos67-linux.tar.xz" | cut -d' ' -f1) ]; then + echo "Error Bootstrap file $PKGMK_SOURCE_DIR/$name-$version-x86_64-centos67-linux.tar.xz failed sha256sum" + exit 1 + fi fi install -d tmp |