syscalc: fix recipe and URL (extension) (#22112)

This commit is contained in:
iarspider 2021-03-05 16:21:12 +01:00 committed by GitHub
parent 098b7b2e50
commit ad9db839cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,8 @@ class Syscalc(MakefilePackage):
url = "https://bazaar.launchpad.net/~mgtools/mg5amcnlo/SysCalc/tarball/17"
version('1.1.7', sha256='ac73df0f9f195eb62601fafc2eede3db17a562750f7971616870d6df4abd1b6c',
url='https://bazaar.launchpad.net/~mgtools/mg5amcnlo/SysCalc/tarball/17')
url='https://bazaar.launchpad.net/~mgtools/mg5amcnlo/SysCalc/tarball/17',
extension='.tgz')
tags = ['hep']
@ -26,7 +27,12 @@ def url_for_version(self, version):
url = url.format(version)
return url
def build(self, spec, prefix):
with working_dir('mg5amcnlo/SysCalc'):
make('all')
def install(self, spec, prefix):
mkdirp(prefix.bin)
install('sys_calc', prefix.bin)
install_tree('include', prefix.include)
with working_dir('mg5amcnlo/SysCalc'):
install('sys_calc', prefix.bin)
install_tree('include', prefix.include)