| #!/usr/bin/env python3 |
| # Copyright 2018 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| """Build wasi-sdk package.""" |
| |
| from pathlib import Path |
| import sys |
| |
| FILESDIR = Path(__file__).resolve().parent |
| sys.path.insert(0, str(FILESDIR.parent.parent / "bin")) |
| |
| import ssh_client # pylint: disable=wrong-import-position |
| |
| |
| ARCHIVES = ("%(P)s-linux.tar.gz",) |
| PATCHES = ("%(p)s-ififo.patch",) |
| |
| |
| def src_install(metadata): |
| """Install the package.""" |
| path = ssh_client.OUTPUT / "wasi-sdk" |
| ssh_client.symlink(metadata["S"], path) |
| |
| |
| ssh_client.build_package(sys.modules[__name__], "build") |