Use VERSION to set the name of a source tar ball
authorLemures Lemniscati <lemures.lemniscati@gmail.com>
Sun, 25 Jul 2021 14:52:36 +0000 (23:52 +0900)
committerLemures Lemniscati <lemures.lemniscati@gmail.com>
Sun, 25 Jul 2021 14:52:36 +0000 (23:52 +0900)
exiv2.cygport

index ab4dd4612a28109daf064a8ad368b5f18123fdc3..e7d7c367e540642c90ee3d4cf28a024f41ed3fd5 100644 (file)
@@ -17,14 +17,12 @@ declare -A GIT_DATEHASH_BY_NAME=(
   # git log --date=iso-strict --format='%cd/%H' -1
   [0.27.3]=2020-06-30T15:58:12+01:00/194bb65ac568a5435874c9d9d73b1c8a68e4edec
 )
-
 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_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}"
 
 ################################
 ## Patches
This page took 0.020144 seconds and 5 git commands to generate.