feat: add support of atom builds

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
2026-07-08 00:48:59 +08:00
parent d06120bdeb
commit bd16d6d218
57 changed files with 433 additions and 28 deletions
+6 -2
View File
@@ -6,17 +6,21 @@ from lib.make import *
upstream_version = "1.0.8"
builddep("shortcut/c")
builddep("shortcut/autotools")
version(f"{upstream_version}")
source_url(f"https://sourceware.org/pub/bzip2/bzip2-{upstream_version}.tar.gz")
def build():
cpp.make(["-f", "Makefile-libbz2_so"])
makevars = [f"CC={os.environ.get('CC', 'cc')}"]
cpp.make(["-f", "Makefile-libbz2_so"] + makevars)
try:
shutil.rmtree("../cpp_install")
except Exception:
pass
cpp.make_install(["PREFIX=../cpp_install"], chdir=False)
cpp.make_install(["PREFIX=../cpp_install" + makevars], chdir=False)
shutil.copy2(
f"libbz2.so.{upstream_version}",
f"../cpp_install/lib/libbz2.so.{upstream_version}",