2019-09-08 15:04:48 +02:00
|
|
|
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="MIT"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-01-18 19:56:30 +01:00
|
|
|
TERMUX_PKG_VERSION=1.12.12
|
2019-09-08 15:04:48 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/xyproto/algernon/archive/$TERMUX_PKG_VERSION.tar.gz
|
2021-01-18 19:56:30 +01:00
|
|
|
TERMUX_PKG_SHA256=6127eb975da960fd8aa7732c82f3b5e62d14ea763801778552bdbeec28846bf7
|
2019-09-08 15:04:48 +02: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/algernon
|
|
|
|
|
|
|
|
cd "$GOPATH"/src/github.com/xyproto/algernon
|
|
|
|
|
|
|
|
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/
|
|
|
|
}
|