libimagequant: added new package at v2.12.6 (#17959)
This commit is contained in:
parent
2954eb39c9
commit
aa14c9d1d1
1 changed files with 25 additions and 0 deletions
25
var/spack/repos/builtin/packages/libimagequant/package.py
Normal file
25
var/spack/repos/builtin/packages/libimagequant/package.py
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Copyright 2013-2020 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(Package):
|
||||
"""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')
|
||||
|
||||
phases = ['configure', 'build', 'install']
|
||||
|
||||
def configure(self, spec, prefix):
|
||||
configure('--prefix=' + prefix)
|
||||
|
||||
def build(self, spec, prefix):
|
||||
make()
|
||||
|
||||
def install(self, spec, prefix):
|
||||
make('install')
|
Loading…
Reference in a new issue