From 1cbc729565fc0e10da6ed97f63054b8db8d0b87f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20F=2E=20R=C3=B8dseth?= <52813+xyproto@users.noreply.github.com> Date: Thu, 6 Feb 2020 00:25:11 +0100 Subject: [PATCH] new package: o (#4883) --- packages/o/build.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 packages/o/build.sh diff --git a/packages/o/build.sh b/packages/o/build.sh new file mode 100644 index 000000000..d25589aa1 --- /dev/null +++ b/packages/o/build.sh @@ -0,0 +1,23 @@ +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 " +TERMUX_PKG_VERSION=2.17.0 +TERMUX_PKG_SRCURL=https://github.com/xyproto/o/archive/$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_SHA256=c97e1b4474727f273bd56c2b56ba54ffbe13ae2b8f8e32508b487ae93c178765 + +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 +}