From 804ee6a6efc0dff856e0b856db38b003475fac7b Mon Sep 17 00:00:00 2001 From: stsp Date: Sun, 15 Dec 2024 11:39:25 +0000 Subject: [PATCH] new package: smallerc This adds SmallerC C compiler. It is cross-platform, and under Termux can be used to compile for dosbox. It is also used with dosemu2, which I am also planning to submit. --- packages/smallerc/build.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/smallerc/build.sh diff --git a/packages/smallerc/build.sh b/packages/smallerc/build.sh new file mode 100644 index 000000000000000..a8b42b8be3f3fca --- /dev/null +++ b/packages/smallerc/build.sh @@ -0,0 +1,16 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/alexfru/SmallerC +TERMUX_PKG_DESCRIPTION="Simple and small C compiler for DOS, Windows, Linux and MacOS" +TERMUX_PKG_LICENSE="BSD 2-Clause" +TERMUX_PKG_MAINTAINER="@stsp" +TERMUX_PKG_VERSION=1.0.2 +TERMUX_PKG_SRCURL=https://github.com/alexfru/SmallerC/archive/refs/tags/v${TERMUX_PKG_VERSION}+dos.win.b120a9c.tar.gz +TERMUX_PKG_SHA256=1e26ed8da461614da26379b7be1510f0e39f52a292fd0d9e54d747664f0c7ef4 +TERMUX_PKG_DEPENDS="nasm" + +termux_step_make() { + make prefix=$PREFIX +} + +termux_step_make_install() { + make install prefix=$PREFIX +}