forked from semios/semios-packages
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0e9573a41 |
@@ -0,0 +1,29 @@
|
|||||||
|
from lib import arch, cpp
|
||||||
|
from lib.make import *
|
||||||
|
|
||||||
|
version("7.0.3")
|
||||||
|
source_url("https://github.com/gavinhoward/bc/releases/download/7.0.3/bc-7.0.3.tar.gz")
|
||||||
|
|
||||||
|
|
||||||
|
def build():
|
||||||
|
predefined_build_type = "GDH"
|
||||||
|
if "-linux" in arch.get_target():
|
||||||
|
predefined_build_type = "GNU"
|
||||||
|
cpp.configure(
|
||||||
|
[
|
||||||
|
"--disable-nls",
|
||||||
|
"--opt=3",
|
||||||
|
f"--predefined-build-type={predefined_build_type}",
|
||||||
|
f"--prefix={get_prefix('bc')}",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
cpp.make()
|
||||||
|
cpp.make_install()
|
||||||
|
|
||||||
|
|
||||||
|
on_build(build)
|
||||||
|
|
||||||
|
package("bc")
|
||||||
|
dep("semi-libc @same-arch")
|
||||||
|
provide("dc")
|
||||||
|
cpp.use_auto_pack(["bin"])
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
import shutil
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
from lib.make import *
|
|
||||||
|
|
||||||
version("15.1.1")
|
|
||||||
source_url("https://gitea.semilabs.org/semios/patch/archive/v15.1.1.tar.gz")
|
|
||||||
|
|
||||||
|
|
||||||
def build():
|
|
||||||
subprocess.run(["./build.sh"], check=True)
|
|
||||||
|
|
||||||
|
|
||||||
on_build(build)
|
|
||||||
|
|
||||||
|
|
||||||
def pack_patch(composer):
|
|
||||||
composer.makedir("bin")
|
|
||||||
composer.addfile("patch", "bin/patch")
|
|
||||||
|
|
||||||
|
|
||||||
package("patch")
|
|
||||||
dep("semi-libc @same-arch")
|
|
||||||
on_pack(pack_patch)
|
|
||||||
Reference in New Issue
Block a user