summaryrefslogtreecommitdiff
path: root/ghc/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/Pkgfile')
-rw-r--r--ghc/Pkgfile9
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

Generated by cgit