squashfuse: add version 0.5.0 (#40775)
This commit is contained in:
parent
b1b8500eba
commit
47ac2b8d09
1 changed files with 9 additions and 1 deletions
|
@ -10,12 +10,12 @@ class Squashfuse(AutotoolsPackage):
|
|||
"""squashfuse - Mount SquashFS archives using FUSE"""
|
||||
|
||||
homepage = "https://github.com/vasi/squashfuse"
|
||||
url = "https://github.com/vasi/squashfuse/releases/download/0.1.104/squashfuse-0.1.104.tar.gz"
|
||||
git = "https://github.com/vasi/squashfuse.git"
|
||||
|
||||
maintainers("haampie")
|
||||
|
||||
version("master", branch="master")
|
||||
version("0.5.0", sha256="d7602c7a3b1d0512764547d27cb8cc99d1b21181e1c9819e76461ee96c2ab4d9")
|
||||
version("0.1.104", sha256="aa52460559e0d0b1753f6b1af5c68cfb777ca5a13913285e93f4f9b7aa894b3a")
|
||||
version("0.1.103", sha256="42d4dfd17ed186745117cfd427023eb81effff3832bab09067823492b6b982e7")
|
||||
|
||||
|
@ -51,6 +51,14 @@ class Squashfuse(AutotoolsPackage):
|
|||
depends_on("automake", type="build", when="@master")
|
||||
depends_on("libtool", type="build", when="@master")
|
||||
|
||||
def url_for_version(self, version):
|
||||
url = "https://github.com/vasi/squashfuse/releases/download/"
|
||||
if version == Version("0.5.0"):
|
||||
url += "v{}/squashfuse-{}.tar.gz"
|
||||
else:
|
||||
url += "{}/squashfuse-{}.tar.gz"
|
||||
return url.format(version, version)
|
||||
|
||||
def flag_handler(self, name, flags):
|
||||
if name == "cflags" and "+min_size" in self.spec:
|
||||
if "-Os" in self.compiler.opt_flags:
|
||||
|
|
Loading…
Reference in a new issue