0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-22 00:30:08 +00:00
Files
termux-packages/packages/o-editor/build.sh
Termux Github Actions 69ac9a0eeb bump(main/o-editor): 2.68.9
This commit has been automatically submitted by Github Actions.
2025-03-06 18:20:16 +00:00

30 lines
966 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/xyproto/o
TERMUX_PKG_DESCRIPTION="Small, fast and limited text editor"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="Alexander F. Rødseth <xyproto@archlinux.org>"
TERMUX_PKG_VERSION="2.68.9"
TERMUX_PKG_SRCURL=https://github.com/xyproto/o/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=acce203a95f1fbbcfdc75abdf88cbe6473e5ff97f99757263d7e195eb4f8640d
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BREAKS="o"
TERMUX_PKG_REPLACES="o"
termux_step_make() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_BUILDDIR
mkdir -p "$GOPATH"/src/github.com/xyproto
ln -sf "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/github.com/xyproto/o
cd "$GOPATH"/src/github.com/xyproto/o/v2
go build
}
termux_step_make_install() {
install -Dm700 -t "$TERMUX_PREFIX"/bin \
"$GOPATH"/src/github.com/xyproto/o/v2/orbiton
ln -sfT orbiton "$TERMUX_PREFIX"/bin/o
install -Dm600 -t "$TERMUX_PREFIX"/share/man/man1 \
"$TERMUX_PKG_SRCDIR"/o.1
}