summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessasaurus <vsochat@gmail.com>2019-04-02 10:33:23 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2019-04-02 12:33:23 -0500
commitb08518dadd92311dad6dd85d6d380a20305ac47e (patch)
tree7d9beb353f911f4ddc1238d88dcacdc91d7ee37f
parent007e168b9e85b34376ef9708612ba184cf622b10 (diff)
downloadspack-b08518dadd92311dad6dd85d6d380a20305ac47e.tar.gz
spack-b08518dadd92311dad6dd85d6d380a20305ac47e.tar.bz2
spack-b08518dadd92311dad6dd85d6d380a20305ac47e.tar.xz
spack-b08518dadd92311dad6dd85d6d380a20305ac47e.zip
adding package to install squashfs for singularity (#11077)
* adding package to install squashfs for singularity * dont need os import Signed-off-by: Vanessa Sochat <vsochat@stanford.edu> * updating md5 to sha1 for squashfs package Signed-off-by: Vanessa Sochat <vsochat@stanford.edu> * two blank lines Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
-rw-r--r--var/spack/repos/builtin/packages/squashfs/package.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/squashfs/package.py b/var/spack/repos/builtin/packages/squashfs/package.py
new file mode 100644
index 0000000000..ae6fc205ae
--- /dev/null
+++ b/var/spack/repos/builtin/packages/squashfs/package.py
@@ -0,0 +1,32 @@
+# Copyright 2013-2019 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 Squashfs(MakefilePackage):
+ """Squashfs - read only compressed filesystem"""
+
+ homepage = 'http://squashfs.sourceforge.net'
+ url = 'https://downloads.sourceforge.net/project/squashfs/squashfs/squashfs4.3/squashfs4.3.tar.gz'
+
+ # version sha1
+ version('4.3', 'a615979db9cee82e4a934a1455577f597d290b41')
+ version('4.2', 'e0944471ff68e215d3fecd464f30ea6ceb635fd7')
+ version('4.1', '7f9b1f9839b3638882f636fd170fd817d650f856')
+ version('4.0', '3efe764ac27c507ee4a549fc6507bc86ea0660dd')
+
+ depends_on('m4', type='build')
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+
+ def build(self, spec, prefix):
+ with working_dir('squashfs-tools'):
+ make(parallel=False)
+
+ def install(self, spec, prefix):
+ with working_dir('squashfs-tools'):
+ make('install', 'INSTALL_DIR=%s' % prefix, parallel=False)