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"
|
2022-02-28 05:11:38 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
2020-02-06 00:25:11 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="Alexander F. Rødseth <xyproto@archlinux.org>"
|
2022-04-05 20:34:57 +02:00
|
|
|
TERMUX_PKG_VERSION=2.49.1
|
2021-09-29 16:56:17 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/xyproto/o/archive/v$TERMUX_PKG_VERSION.tar.gz
|
2022-04-05 20:34:57 +02:00
|
|
|
TERMUX_PKG_SHA256=26d701184d4efe467ce43a096498f8ffea6cd65ab5a7d7b37459183e730ebafa
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
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
|
|
|
|
|
2022-04-05 20:34:57 +02:00
|
|
|
cd "$GOPATH"/src/github.com/xyproto/o/v2
|
2020-02-06 00:25:11 +01:00
|
|
|
go build
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
2022-02-28 05:11:38 +01:00
|
|
|
install -Dm700 -t "$TERMUX_PREFIX"/bin \
|
2022-04-05 20:34:57 +02:00
|
|
|
"$GOPATH"/src/github.com/xyproto/o/v2/o
|
2022-02-28 05:11:38 +01:00
|
|
|
install -Dm600 -t "$TERMUX_PREFIX"/share/man/man1 \
|
|
|
|
"$TERMUX_PKG_SRCDIR"/o.1
|
2020-02-06 00:25:11 +01:00
|
|
|
}
|