unrar: Add package (#12908)
This commit is contained in:
parent
f34162a5b8
commit
ba72114ba2
31
var/spack/repos/builtin/packages/unrar/package.py
Normal file
31
var/spack/repos/builtin/packages/unrar/package.py
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# 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 Unrar(MakefilePackage):
|
||||||
|
"""RAR archive extraction utility"""
|
||||||
|
|
||||||
|
homepage = "https://www.rarlab.com"
|
||||||
|
url = "https://www.rarlab.com/rar/unrarsrc-5.8.2.tar.gz"
|
||||||
|
|
||||||
|
version(
|
||||||
|
"5.8.2",
|
||||||
|
sha256="33386623fd3fb153b56292df4a6a69b457e69e1803b6d07b614e5fd22fb33dda",
|
||||||
|
)
|
||||||
|
|
||||||
|
version(
|
||||||
|
"5.8.1",
|
||||||
|
sha256="035f1f436f0dc2aea09aec146b9cc3e47ca2442f2c62b4ad9374c7c9cc20e632",
|
||||||
|
)
|
||||||
|
|
||||||
|
def edit(self, spec, prefix):
|
||||||
|
makefile = FileFilter("makefile")
|
||||||
|
makefile.filter(
|
||||||
|
"LIBFLAGS=-fPIC", "LIBFLAGS={0}".format(self.compiler.pic_flag)
|
||||||
|
)
|
||||||
|
makefile.filter("DESTDIR=/usr", "DESTDIR={0}".format(self.prefix))
|
Loading…
Reference in New Issue
Block a user