0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 00:10:52 +00:00
Termux Github Actions 40ce6c0c84 bump(main/algernon): 1.17.1
This commit has been automatically submitted by Github Actions.
2024-07-13 18:12:26 +00:00

33 lines
1.1 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://algernon.roboticoverlords.org/
TERMUX_PKG_DESCRIPTION="Small self-contained web server with Lua, Markdown, QUIC, Redis and PostgreSQL support"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.17.1"
TERMUX_PKG_SRCURL="https://github.com/xyproto/algernon/archive/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=6f1459b80d98c2d4ebc3f1bf025b30671fb93b1b0e457d609dc5b718c7ced3e6
TERMUX_PKG_AUTO_UPDATE=true
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/algernon
cd "${GOPATH}"/src/github.com/xyproto/algernon || exit 1
go build
}
termux_step_make_install() {
install -Dm700 \
"${GOPATH}"/src/github.com/xyproto/algernon/algernon \
"${TERMUX_PREFIX}"/bin/
# Offline samples may be useful to get started with Algernon.
rm -rf "${TERMUX_PREFIX}"/share/doc/algernon
mkdir -p "${TERMUX_PREFIX}"/share/doc/algernon
cp -a "${GOPATH}"/src/github.com/xyproto/algernon/samples \
"${TERMUX_PREFIX}"/share/doc/algernon/
}