]> https://gitweb.dealii.org/ - candi.git/commitdiff
Prepare tar and git download option 256/head
authorFabian Castelli <fabian.castelli@kit.edu>
Sat, 28 Aug 2021 07:54:48 +0000 (09:54 +0200)
committerFabian Castelli <fabian.castelli@kit.edu>
Sat, 28 Aug 2021 11:53:02 +0000 (13:53 +0200)
deal.II-toolchain/packages/ginkgo.package

index 21c1b401f1a2fe9f812d6d71d622a20a7989f3a6..2836784be808eab63e7a11c63d3d341dfe281248 100644 (file)
@@ -2,11 +2,32 @@
 ## GINKGO                                                                     ##
 ################################################################################
 
-VERSION=v1.4.0
-NAME=ginkgo.git
-SOURCE=https://github.com/ginkgo-project/
-EXTRACTSTO=ginkgo-${VERSION}
-PACKING=git
+# By default load the tarball.
+# To load the git repository define a variable CANDI_GINKGO_LOAD_TARBALL=OFF.
+if [ -z ${CANDI_GINKGO_LOAD_TARBALL} ]; then
+    CANDI_GINKGO_LOAD_TARBALL=ON
+fi
+
+if [ ${CANDI_GINKGO_LOAD_TARBALL} = ON ]; then
+    # download release tarball
+    VERSION=1.4.0
+    CHECKSUM=6dcadbd3e93f6ec58ef6cda5b980fbf51ea3c7c13e27952ef38804058ac93f08
+    CHECKSUM="${CHECKSUM} 10d244ce127cca3c735587d836c6308cfca0c855"
+    CHECKSUM="${CHECKSUM} d7ff9d564f8ca96b9ad33621821aff48"
+
+    NAME=v${VERSION}
+    SOURCE=https://github.com/ginkgo-project/ginkgo/archive/refs/tags/
+    EXTRACTSTO=ginkgo-${VERSION}
+    PACKING=.tar.gz
+else
+    # download git repository
+    VERSION=v1.4.0
+    NAME=ginkgo.git
+    SOURCE=https://github.com/ginkgo-project/
+    EXTRACTSTO=ginkgo-${VERSION}
+    PACKING=git
+fi
+unset CANDI_GINKGO_LOAD_TARBALL
 
 BUILDCHAIN=cmake
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.