termux-packages/packages/o-editor/build.sh
Termux Github Actions 48a185c1a0 o-editor: update to 2.35.0
This commit has been automatically submitted by Github Actions.
2021-01-09 00:53:05 +00:00

26 lines
866 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/xyproto/o
TERMUX_PKG_DESCRIPTION="Small, fast and limited text editor"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Alexander F. Rødseth <xyproto@archlinux.org>"
TERMUX_PKG_VERSION=2.35.0
TERMUX_PKG_SRCURL=https://github.com/xyproto/o/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=40f1e30077783be6996ef93c8513ddc983b7a70d568c941fa8d28b568e8fabd6
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
go build
}
termux_step_make_install() {
install -Dm700 -t "$TERMUX_PREFIX"/bin "$GOPATH"/src/github.com/xyproto/o/o
install -Dm600 -t "$TERMUX_PREFIX"/share/man/man1 "$TERMUX_PKG_SRCDIR"/o.1
}