4b8c077711
This reverts commit f6892c38d82a3fb68d4a267f97ac9ebf9459e16e, reversing changes made to 4d9075fea318304ef59cc13f0f478b084eb8831e.
26 lines
866 B
Bash
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.39.2
|
|
TERMUX_PKG_SRCURL=https://github.com/xyproto/o/archive/$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=c055c18ac61bf06f7434827b6ac92c5e1f9367277685da628f092799034a82d6
|
|
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
|
|
}
|