cryptopp: fix url (#46562)
This commit is contained in:
parent
b83c5237e9
commit
71f73f5e40
@ -13,8 +13,11 @@ class Cryptopp(MakefilePackage):
|
|||||||
public-key encryption (RSA, DSA), and a few obsolete/historical encryption
|
public-key encryption (RSA, DSA), and a few obsolete/historical encryption
|
||||||
algorithms (MD5, Panama)."""
|
algorithms (MD5, Panama)."""
|
||||||
|
|
||||||
homepage = "https://www.cryptopp.com"
|
homepage = "https://github.com/weidai11/cryptopp"
|
||||||
url = "https://www.cryptopp.com/cryptopp700.zip"
|
urls = [
|
||||||
|
"https://github.com/weidai11/cryptopp/releases/download/CRYPTOPP_8_9_0/cryptopp890.zip",
|
||||||
|
"https://www.cryptopp.com/cryptopp700.zip",
|
||||||
|
]
|
||||||
|
|
||||||
license("BSL-1.0")
|
license("BSL-1.0")
|
||||||
|
|
||||||
@ -34,8 +37,7 @@ class Cryptopp(MakefilePackage):
|
|||||||
depends_on("gmake", type="build")
|
depends_on("gmake", type="build")
|
||||||
|
|
||||||
def url_for_version(self, version):
|
def url_for_version(self, version):
|
||||||
url = "{0}/{1}{2}.zip"
|
return f"https://github.com/weidai11/cryptopp/releases/download/CRYPTOPP_{version.underscored}/cryptopp{version.joined}.zip"
|
||||||
return url.format(self.homepage, self.name, version.joined)
|
|
||||||
|
|
||||||
def build(self, spec, prefix):
|
def build(self, spec, prefix):
|
||||||
cxx_flags = []
|
cxx_flags = []
|
||||||
|
Loading…
Reference in New Issue
Block a user