2018-05-09 17:52:51 +03:00
name : gitea
summary : Gitea - A painless self-hosted Git service
description : |
The goal of this project is to make the easiest, fastest, and most painless
way of setting up a self-hosted Git service. With Go, this can be done with
an independent binary distribution across ALL platforms that Go supports,
including Linux, Mac OS X, Windows and ARM.
icon : public/img/gitea-lg.png
confinement : strict
2020-05-08 23:21:28 +03:00
base : core18
adopt-info : gitea
2018-05-09 17:52:51 +03:00
2020-05-09 07:39:19 +03:00
architectures :
- build-on : armhf
- build-on : amd64
- build-on : arm64
2020-05-08 23:21:28 +03:00
environment :
GITEA_CUSTOM : "$SNAP_COMMON"
GITEA_WORK_DIR : "$SNAP_DATA"
2018-05-09 17:52:51 +03:00
apps :
gitea :
2020-05-08 23:21:28 +03:00
command : gitea
2018-05-09 17:52:51 +03:00
plugs : [ network, network-bind]
web :
2020-05-08 23:21:28 +03:00
command : gitea web
2018-05-09 17:52:51 +03:00
daemon : simple
plugs : [ network, network-bind]
dump :
2020-05-08 23:21:28 +03:00
command : gitea dump
2018-05-09 17:52:51 +03:00
plugs : [ home]
version :
2020-05-08 23:21:28 +03:00
command : gitea --version
2018-05-09 17:52:51 +03:00
sqlite :
command : usr/bin/sqlite3
parts :
gitea :
2020-05-08 23:21:28 +03:00
plugin : make
2018-05-09 17:52:51 +03:00
source : .
stage-packages : [ git, sqlite3, openssh-client ]
2020-05-08 23:21:28 +03:00
build-packages : [ git, libpam0g-dev, libsqlite3-dev]
build-snaps : [ go, node/14/stable ]
build-environment :
- LDFLAGS : ""
override-pull : |
snapcraftctl pull
version="$(git describe --always | sed -e 's/-/+git/;y/-/./')"
[ -n "$(echo $version | grep " +git")" ] && grade=devel || grade=stable
snapcraftctl set-version "$version"
snapcraftctl set-grade "$grade"
override-build : |
set -x
2019-12-08 19:56:59 +03:00
TAGS="bindata sqlite sqlite_unlock_notify pam cert" make build
2020-05-08 23:21:28 +03:00
install -D gitea "${SNAPCRAFT_PART_INSTALL}/gitea"
cp -r options "${SNAPCRAFT_PART_INSTALL}/"
2018-05-09 17:52:51 +03:00
prime :
- -etc
- -usr/lib/systemd
- -usr/lib/gcc
- -usr/lib/sasl2
- -usr/lib/x86_64-linux-gnu/krb5
- -usr/share/apport
- -usr/share/bash-completion
- -usr/share/git-core/contrib
- -usr/share/man
- -usr/share/upstart
- -var