Skip to content

Commit

Permalink
new package: ollama (#1183)
Browse files Browse the repository at this point in the history
  • Loading branch information
knyipab authored Sep 9, 2024
1 parent c6afb87 commit 661924a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tur/ollama/build.sh
Original file line number Diff line number Diff line change
@@ -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/
}

0 comments on commit 661924a

Please sign in to comment.