codec2: fix url; add v1.2.0 (#46514)

This commit is contained in:
Wouter Deconinck 2024-09-22 07:06:57 -05:00 committed by GitHub
parent 2375f873bf
commit 34525388fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"