From 661924aae0fbdb2223e975e700718b9e75c53f99 Mon Sep 17 00:00:00 2001 From: "Ronald Y." <46513942+knyipab@users.noreply.github.com> Date: Mon, 9 Sep 2024 22:25:04 +0800 Subject: [PATCH] new package: ollama (#1183) --- tur/ollama/build.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tur/ollama/build.sh diff --git a/tur/ollama/build.sh b/tur/ollama/build.sh new file mode 100644 index 000000000..d5c88a59a --- /dev/null +++ b/tur/ollama/build.sh @@ -0,0 +1,24 @@ +TERMUX_PKG_HOMEPAGE=https://ollama.com/ +TERMUX_PKG_DESCRIPTION="Get up and running with large language models. " +TERMUX_PKG_LICENSE="MIT" +TERMUX_PKG_MAINTAINER="@termux-user-repository" +TERMUX_PKG_VERSION=0.3.9 +TERMUX_PKG_SRCURL=git+https://github.com/ollama/ollama +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_AUTO_UPDATE=true +TERMUX_PKG_UPDATE_TAG_TYPE="latest-release-tag" +TERMUX_PKG_BLACKLISTED_ARCHES="arm, i686" + +termux_step_pre_configure() { + termux_setup_golang + termux_setup_cmake +} + +termux_step_make() { + go generate './...' + go build +} + +termux_step_make_install() { + install -Dm700 ollama $TERMUX_PREFIX/bin/ +}