From f3ab982835fd995711ca5fda2c441d1fb1ef4666 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 20 Jul 2026 21:20:17 +0300 Subject: wip: Initial idea --- std/builder/builder.ucx | 25 +++++++++++++++++++++++++ std/builder/builder_rust.ucx | 6 ++++++ 2 files changed, 31 insertions(+) create mode 100644 std/builder/builder.ucx create mode 100644 std/builder/builder_rust.ucx (limited to 'std/builder') diff --git a/std/builder/builder.ucx b/std/builder/builder.ucx new file mode 100644 index 0000000..b5e00b0 --- /dev/null +++ b/std/builder/builder.ucx @@ -0,0 +1,25 @@ +name := builder +#-- do +if [ -f "$(Xpath $SELF.src)" ] +then + while read -r src + do + case "$src" in + (*.git|git:*) git clone $src ;; + (*) wget $src + esac + done <"$(Xpath $SELF.src)" +fi +if [ -f "$(Xpath $SELF.build)" ] +then + /bin/sh $(Xpath $SELF.build) +else + make +fi +if [ -f "$(Xpath $SELF.install)" ] +then + /bin/sh $(Xpath $SELF.install) +else + mkdir /out + PREFIX=/out make install +fi diff --git a/std/builder/builder_rust.ucx b/std/builder/builder_rust.ucx new file mode 100644 index 0000000..3cc5f76 --- /dev/null +++ b/std/builder/builder_rust.ucx @@ -0,0 +1,6 @@ +name := builder_rust +import := builder +#-- build +cargo build +#-- install +cargo install -- cgit v1.3.1-23-gd82d