3efa45721a
* calcurse: update to 4.6.0 * dialog: update to 20200327 * dictd: update to 1.13.0 * gitea: update to 1.11.4 * jfrog-cli: update to 1.35.3 * libgd: update to 2.3.0 * libgit2: update to 1.0.0 * libgraphite: update to 1.3.14 * libnftnl: update to 1.1.6 * vim, vim-python: update to 8.2.0500 * unrar: update to 5.9.2 * remind: update to 03.03.01 * nano: update to 4.9.1 * seafile-client: update to 7.0.7 * libgnutls: update to 3.6.13 * apache2: update to 2.4.43
44 lines
1.6 KiB
Bash
44 lines
1.6 KiB
Bash
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="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
|
TERMUX_PKG_VERSION=1.11.4
|
|
TERMUX_PKG_SRCURL=https://github.com/go-gitea/gitea/archive/v$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=8dd92f8fdd1653a62d3846937097e12523a1394bea688dc737f559cdd8f9de07
|
|
TERMUX_PKG_DEPENDS="dash, git"
|
|
TERMUX_PKG_CONFFILES="etc/gitea/app.ini"
|
|
|
|
termux_step_make() {
|
|
termux_setup_golang
|
|
export GOPATH=$TERMUX_PKG_BUILDDIR
|
|
|
|
mkdir -p "$GOPATH"/src/code.gitea.io
|
|
cp -a "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/code.gitea.io/gitea
|
|
cd "$GOPATH"/src/code.gitea.io/gitea
|
|
|
|
# go-bindata shoudn't be cross-compiled
|
|
GOOS=linux GOARCH=amd64 go get -u github.com/jteeuwen/go-bindata/...
|
|
export PATH="$PATH:$GOPATH/bin"
|
|
|
|
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"
|
|
TAGS="bindata sqlite" make all
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 \
|
|
"$GOPATH"/src/code.gitea.io/gitea/gitea \
|
|
"$TERMUX_PREFIX"/bin/gitea
|
|
|
|
mkdir -p "$TERMUX_PREFIX"/etc/gitea
|
|
sed "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" \
|
|
"$TERMUX_PKG_BUILDER_DIR"/app.ini > "$TERMUX_PREFIX"/etc/gitea/app.ini
|
|
}
|
|
|
|
termux_step_post_massage() {
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX"/var/lib/gitea
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX"/var/log/gitea
|
|
}
|