summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libimagequant/package.py
blob: c0d5e94635e548ea81ab100fd798acfd5dcf9855 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright 2013-2022 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)


class Libimagequant(MakefilePackage):
    """Small, portable C library for high-quality conversion of RGBA images to
    8-bit indexed-color (palette) images.
    """

    homepage = "https://pngquant.org/lib/"
    url      = "https://github.com/ImageOptim/libimagequant/archive/2.12.6.tar.gz"

    version('2.12.6', sha256='b34964512c0dbe550c5f1b394c246c42a988cd73b71a76c5838aa2b4a96e43a0')

    def edit(self, spec, prefix):
        configure('--prefix=' + prefix)