2020-02-06 00:25:11 +01:00
|
|
|
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>"
|
2021-08-23 14:18:41 +02:00
|
|
|
TERMUX_PKG_VERSION=2.43.1
|
2021-08-24 21:13:06 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2020-02-06 00:25:11 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/xyproto/o/archive/$TERMUX_PKG_VERSION.tar.gz
|
2021-08-23 14:18:41 +02:00
|
|
|
TERMUX_PKG_SHA256=10289e6e7dd442d09d9365db456fc67f1231e0212220804eef995fb80aa05486
|
2020-02-11 22:10:53 +01:00
|
|
|
TERMUX_PKG_BREAKS="o"
|
|
|
|
TERMUX_PKG_REPLACES="o"
|
2020-02-06 00:25:11 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|