From 04735a541948ed8f8620a2151d982fb7313045bb Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 4 Jul 2021 12:40:45 +0300 Subject: [PATCH] aedi: add unrar target --- aedi/target/__init__.py | 1 + aedi/target/tools.py | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/aedi/target/__init__.py b/aedi/target/__init__.py index 320b5fcb..c8973b2d 100644 --- a/aedi/target/__init__.py +++ b/aedi/target/__init__.py @@ -103,6 +103,7 @@ def targets(): NinjaTarget(), P7ZipTarget(), PkgConfigTarget(), + UnrarTarget(), YasmTarget(), ZipTarget(), diff --git a/aedi/target/tools.py b/aedi/target/tools.py index 80b761c6..fc941238 100644 --- a/aedi/target/tools.py +++ b/aedi/target/tools.py @@ -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)