Adjust a name of an upstream source tarball
authorLemures Lemniscati <lemures.lemniscati@gmail.com>
Wed, 26 May 2021 22:14:08 +0000 (07:14 +0900)
committerLemures Lemniscati <lemures.lemniscati@gmail.com>
Wed, 26 May 2021 22:14:08 +0000 (07:14 +0900)
jbig2dec.cygport

index ccc7b2f0590f65727e473bfa03db8744831969c4..e0327ed4988e12594f5a5a4a4ae7effc8f51ec8d 100644 (file)
@@ -16,15 +16,14 @@ HOMEPAGE="https://jbig2dec.com/"
 GIT_REPO="https://github.com/ArtifexSoftware/jbig2dec"
 declare -A GIT_DATEHASH_BY_NAME=(
   # git log -1 --date=iso-strict --format='%cd/%H'
-  [0.19]=2020-09-10T16:14:14+01:00/1c336b8ab44524dc56ea837e2211ff4207704cdd
+  [0.19]=2020-09-10T16:14:14+01:00/0.19
 )
 REV_HASH="${GIT_DATEHASH_BY_NAME[${VERSION}]#*/}"
-REV_DATE="${GIT_DATEHASH_BY_NAME[${VERSION}]%/*}"
-REV_DATE_SHORT="${GIT_DATEHASH_BY_NAME[${VERSION}]%T*}"
+REV_DATE="${GIT_DATEHASH_BY_NAME[${VERSION}]%%/*}"
+REV_DATE_SHORT="${REV_DATE%%T*}"
 GIT_BASENAME="${GIT_REPO##*/}"
-SRC_URI="${GIT_REPO}/archive/${REV_HASH}.tar.gz"   # GitHub
-#SRC_URI="${GIT_REPO}/-/archive/${REV_HASH}/${GIT_BASENAME}-${REV_HASH}.tar.bz2" # GitLab
-SRC_DIR="${GIT_BASENAME}-${REV_HASH}"
+SRC_URI="${GIT_REPO}/archive/${REV_HASH}/${GIT_BASENAME}-${VERSION}.tar.gz"
+SRC_DIR="${GIT_BASENAME}-${REV_HASH#v}"
 
 ################################
 ## Compile
This page took 0.035184 seconds and 5 git commands to generate.