mtn: add mtn package (#39053)
This commit is contained in:
parent
fb83c7112e
commit
cc2fa9895e
31
var/spack/repos/builtin/packages/mtn/package.py
Normal file
31
var/spack/repos/builtin/packages/mtn/package.py
Normal file
@ -0,0 +1,31 @@
|
||||
# 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 Mtn(MakefilePackage):
|
||||
"""Movie Thumbnailer is CLI thumbnail generator using FFmpeg."""
|
||||
|
||||
homepage = "https://gitlab.com/movie_thumbnailer/mtn"
|
||||
url = "https://gitlab.com/movie_thumbnailer/mtn/-/archive/v3.4.2/mtn-v3.4.2.tar.gz"
|
||||
|
||||
maintainers("ledif")
|
||||
|
||||
version("3.4.2", sha256="19b2076c00f5b0ad70c2467189b17f335c6e7ece5d1a01ed8910779f6a5ca52a")
|
||||
|
||||
depends_on("ffmpeg")
|
||||
depends_on("libgd")
|
||||
|
||||
def build(self, spec, prefix):
|
||||
src_dir = join_path(self.build_directory, "src")
|
||||
with working_dir(src_dir):
|
||||
make()
|
||||
|
||||
def install(self, spec, prefix):
|
||||
src_dir = join_path(self.build_directory, "src")
|
||||
with working_dir(src_dir):
|
||||
make(f"PREFIX={prefix}", "install")
|
Loading…
Reference in New Issue
Block a user