gitea: Update to 1.16.3

This commit is contained in:
Tee KOBAYASHI 2022-03-03 14:58:23 +09:00 committed by xtkoba
parent 2fd39a6143
commit f307a65a1e

View File

@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://gitea.io
TERMUX_PKG_DESCRIPTION="Git with a cup of tea, painless self-hosted git service"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.14.6
TERMUX_PKG_REVISION=1
TERMUX_PKG_VERSION=1.16.3
TERMUX_PKG_SRCURL=https://github.com/go-gitea/gitea/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=6953049817b86dafa3b8327b7a1b463ef7880f617a9574f03a4b4eb1ea4b6c4d
TERMUX_PKG_SHA256=be1cefeb753c5679595919ab9d13869e7c2aa9ab55142cb846fff5fcf4fb9648
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="dash, git"
TERMUX_PKG_CONFFILES="etc/gitea/app.ini"
@ -22,11 +21,21 @@ termux_step_make() {
cp -a "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/code.gitea.io/gitea
cd "$GOPATH"/src/code.gitea.io/gitea
go mod init || :
go mod tidy
# Effectively a backport of https://github.com/lib/pq/commit/6a102c04ac8dc082f1684b0488275575c374cb4c.
for f in "$GOPATH"/pkg/mod/github.com/lib/pq@*/user_posix.go; do
chmod 0755 "$(dirname "$f")"
chmod 0644 "$f"
sed -i '/^\/\/ +build /s/ linux / linux,!android /g' "$f"
done
LDFLAGS=""
LDFLAGS+=" -X code.gitea.io/gitea/modules/setting.CustomConf=$TERMUX_PREFIX/etc/gitea/app.ini"
LDFLAGS+=" -X code.gitea.io/gitea/modules/setting.AppWorkPath=$TERMUX_PREFIX/var/lib/gitea"
LDFLAGS+=" -X code.gitea.io/gitea/modules/setting.CustomPath=$TERMUX_PREFIX/var/lib/gitea"
GITEA_VERSION=v"$TERMUX_PKG_VERSION" TAGS="bindata sqlite" make all
GITEA_VERSION=v"$TERMUX_PKG_VERSION" TAGS="bindata sqlite sqlite_unlock_notify" make all
}
termux_step_make_install() {