termux-packages/packages/glow/build.sh
Leonid Pliushch 4b8c077711
Revert "Merge pull request #7104 from thunder-coding/cache-godeps"
This reverts commit f6892c38d8, reversing
changes made to 4d9075fea3.
2021-07-10 17:00:18 +03:00

27 lines
938 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/charmbracelet/glow
TERMUX_PKG_DESCRIPTION="Render markdown on the CLI, with pizzazz!"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@charmbracelet"
TERMUX_PKG_VERSION=1.4.1
TERMUX_PKG_SRCURL=https://github.com/charmbracelet/glow/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=ff6dfd7568f0bac5144ffa3a429ed956dcbdb531487ef6e38ac61365322c9601
TERMUX_PKG_RECOMMENDS=git
termux_step_make() {
termux_setup_golang
cd "$TERMUX_PKG_SRCDIR"
mkdir -p "${TERMUX_PKG_BUILDDIR}/src/github.com/charmbracelet"
cp -a "${TERMUX_PKG_SRCDIR}" "${TERMUX_PKG_BUILDDIR}/src/github.com/charmbracelet/glow"
cd "${TERMUX_PKG_BUILDDIR}/src/github.com/charmbracelet/glow"
go get -d -v
go build
}
termux_step_make_install() {
install -Dm700 ${TERMUX_PKG_BUILDDIR}/src/github.com/charmbracelet/glow/glow \
$TERMUX_PREFIX/bin/glow
}