mirror of
https://github.com/termux/termux-packages.git
synced 2025-01-31 21:22:27 +00:00
21 lines
817 B
Bash
21 lines
817 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/sigoden/aichat
|
|
TERMUX_PKG_DESCRIPTION="A powerful chatgpt cli"
|
|
TERMUX_PKG_LICENSE="Apache-2.0,MIT"
|
|
TERMUX_PKG_LICENSE_FILE="LICENSE-APACHE,LICENSE-MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="0.27.0"
|
|
TERMUX_PKG_SRCURL=https://github.com/sigoden/aichat/archive/v$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=eb97284be786b2b625992ab875bb95da2aa3707c063cb0c34521cb01024b38cd
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
# This package contains makefiles to run the tests. So, we need to override build steps.
|
|
termux_step_make() {
|
|
termux_setup_rust
|
|
cargo build --jobs "$TERMUX_PKG_MAKE_PROCESSES" --target "$CARGO_TARGET_NAME" --release
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 -t "$TERMUX_PREFIX/bin" "target/${CARGO_TARGET_NAME}/release/aichat"
|
|
}
|