summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/p7zip/package.py
blob: 72665ddc4bb7647742f313fb6f6f5bc9616f0a34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2013-2018 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 P7zip(MakefilePackage):
    """A Unix port of the 7z file archiver"""

    homepage = "http://p7zip.sourceforge.net"
    url      = "https://downloads.sourceforge.net/project/p7zip/p7zip/16.02/p7zip_16.02_src_all.tar.bz2"

    version('16.02', 'a0128d661cfe7cc8c121e73519c54fbf')

    # all3 includes 7z, 7za, and 7zr
    build_targets = ['all3']

    @property
    def install_targets(self):
        return ['DEST_HOME={0}'.format(self.prefix), 'install']