summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/brunsli/package.py
blob: 7b84d2a02882775859261275e535e8cc32481053 (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
# 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 Brunsli(CMakePackage):
    """Brunsli is a lossless JPEG repacking library."""

    homepage = "https://github.com/google/brunsli"
    git = "https://github.com/google/brunsli.git"

    license("MIT")

    version("0.1", tag="v0.1", commit="8a0e9b8ca2e3e089731c95a1da7ce8a3180e667c", submodules=True)

    depends_on("cmake@3.1:", type="build")

    @property
    def libs(self):
        return find_libraries(
            ["libbrunslidec-c", "libbrunslienc-c"], root=self.prefix, recursive=True
        )