27afd9e665
Re-enable automatic updates after deleting github-projects.txt. %ci:no-build
27 lines
895 B
Bash
27 lines
895 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.44.1
|
|
TERMUX_PKG_SRCURL=https://github.com/xyproto/o/archive/v$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=76c6f435e92f6c56074ca50a7a16dc230668bf5d61cc7ec03a3a054ac581f5fb
|
|
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
|
|
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
|
|
}
|