Skip to content

Commit

Permalink
codec2: fix url; add v1.2.0 (spack#46514)
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Sep 22, 2024
1 parent 2375f87 commit 3452538
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion var/spack/repos/builtin/packages/codec2/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,20 @@ class Codec2(CMakePackage):
HF/VHF digital radio."""

homepage = "https://www.rowetel.com/?page_id=452"
url = "https://github.com/drowe67/codec2/archive/v0.9.2.tar.gz"
url = "https://github.com/drowe67/codec2/archive/refs/tags/1.2.0.tar.gz"

license("LGPL-2.1-or-later")

version("1.2.0", sha256="cbccae52b2c2ecc5d2757e407da567eb681241ff8dadce39d779a7219dbcf449")
version("1.1.0", sha256="d56ba661008a780b823d576a5a2742c94d0b0507574643a7d4f54c76134826a3")
version("1.0.5", sha256="cd9a065dd1c3477f6172a0156294f767688847e4d170103d1f08b3a075f82826")
version("0.9.2", sha256="19181a446f4df3e6d616b50cabdac4485abb9cd3242cf312a0785f892ed4c76c")

depends_on("c", type="build")

def url_for_version(self, version):
# Release 1.2.0 started with shallow git clone "to reduce repo size"
if version < Version("1.2.0"):
return f"https://github.com/drowe67/codec2-dev/archive/refs/tags/v{version}.tar.gz"
else:
return f"https://github.com/drowe67/codec2/archive/refs/tags/{version}.tar.gz"

0 comments on commit 3452538

Please sign in to comment.