mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-04 18:45:52 +00:00
375171ca68
This commit has been automatically submitted by Github Actions.
28 lines
891 B
Bash
28 lines
891 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="@termux"
|
|
TERMUX_PKG_VERSION="2.0.0"
|
|
TERMUX_PKG_SRCURL=https://github.com/charmbracelet/glow/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=55872e36c006e7e715b86283baf14add1f85b0a0304e867dd0d80e8d7afe49a8
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
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
|
|
}
|