Add new package: dosfstools (#18410)

This commit is contained in:
darmac 2020-08-31 23:49:50 +08:00 committed by GitHub
parent 0d08071e95
commit 3287050226
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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)
from spack import *
class Dosfstools(AutotoolsPackage):
"""dosfstools consists of the programs mkfs.fat, fsck.fat and fatlabel
to create, check and label file systems of the FAT family."""
homepage = "https://github.com/dosfstools/dosfstools"
url = "https://github.com/dosfstools/dosfstools/archive/v4.1.tar.gz"
version('4.1', sha256='8ff9c2dcc01551fe9de8888cb41eb1051fd58bdf1ab3a93d3d88916f0a4ffd1b')
version('4.0', sha256='77975e289e695cb8c984a3c0a15a3bbf3af90be83c26983d43abcde9ec48eea5')
depends_on('automake', type='build')
depends_on('autoconf', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
def setup_run_environment(self, env):
env.prepend_path('PATH', self.prefix.sbin)