summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/lizard/package.py
blob: c9c7b67fbeaaebec85b95a8b2bdfd9d1203dc2d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class Lizard(MakefilePackage):
    """Lizard (formerly LZ5) is an efficient compressor with very
    fast decompression. It achieves compression ratio that is
    comparable to zip/zlib and zstd/brotli (at low and medium
    compression levels) at decompression speed of 1000 MB/s and
    faster."""

    homepage = "https://github.com/inikep/lizard"
    url = "https://github.com/inikep/lizard/archive/v1.0.tar.gz"
    git = "https://github.com/inikep/lizard.git"

    version("develop", branch="lizard")
    version("1.0", sha256="6f666ed699fc15dc7fdaabfaa55787b40ac251681b50c0d8df017c671a9457e6")

    patch("fix-install-decompress.patch", when="@1.0")

    def install(self, spec, prefix):
        make("PREFIX=%s" % prefix, "install")