aedi: add unrar target

This commit is contained in:
alexey.lysiuk 2021-07-04 12:40:45 +03:00
parent 4bc8050cf6
commit 04735a5419
2 changed files with 14 additions and 0 deletions

View file

@ -103,6 +103,7 @@ def targets():
NinjaTarget(),
P7ZipTarget(),
PkgConfigTarget(),
UnrarTarget(),
YasmTarget(),
ZipTarget(),

View file

@ -150,6 +150,19 @@ class YasmTarget(ConfigureMakeDependencyTarget):
return os.path.exists(state.source + 'libyasm.h')
class UnrarTarget(MakeTarget):
def __init__(self, name='unrar'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://www.rarlab.com/rar/unrarsrc-6.0.7.tar.gz',
'a7029942006cbcced3f3b7322ec197683f8e7be408972ca08099b196c038f518')
def post_build(self, state: BuildState):
self.copy_to_bin(state)
class ZipTarget(MakeTarget):
def __init__(self, name='zip'):
super().__init__(name)