From 486a7e75edeffee77caf4ae62efdd7e2cba0e0b3 Mon Sep 17 00:00:00 2001 From: YAKSH BARIYA Date: Sun, 27 Jun 2021 22:31:43 +0530 Subject: [PATCH] Add package: `silicon` (#7060) * Add package: `silicon` Closes #6331 --- packages/silicon/build.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/silicon/build.sh diff --git a/packages/silicon/build.sh b/packages/silicon/build.sh new file mode 100644 index 000000000..183372dcb --- /dev/null +++ b/packages/silicon/build.sh @@ -0,0 +1,22 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/Aloxaf/silicon +TERMUX_PKG_DESCRIPTION="Silicon is an alternative to Carbon implemented in Rust" +TERMUX_PKG_LICENSE="MIT" +TERMUX_PKG_MAINTAINER="Yaksh Bariya " +TERMUX_PKG_VERSION=0.4.3 +TERMUX_PKG_SRCURL=https://github.com/Aloxaf/silicon/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=68d64ade34ac571cf2d092f9a6f124e2c7d0441a91e3ba00ca1c8edcdd008630 +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_BLACKLISTED_ARCHES="arm" + +termux_step_pre_configure() { + termux_setup_rust + termux_setup_cmake +} + +termux_step_make() { + cargo build --jobs $TERMUX_MAKE_PROCESSES --target $CARGO_TARGET_NAME --release +} + +termux_step_make_install() { + install -Dm755 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/silicon +}