python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / gitea / template
blobc58c46991409771b187566dbe05aa4a9ecc296a3
1 # Template file for 'gitea'
2 pkgname=gitea
3 version=1.4.1
4 revision=3
5 build_style=go
6 go_import_path="code.gitea.io/gitea"
7 # This could be done with build options, but these are built in with the
8 # following justification.
9 #   * bindata: running with things not all in the binary is not a
10 #     supported distribution format by the gitea upstream developers.
11 #     That mode is only supported for development of gitea within the
12 #     source tree
13 #   * sqlite: this is likely the database that everyone will use.  Only
14 #     particularly large installations will want to go through the
15 #     effort of setting up a real database server.
16 #   * pam: PAM allows for authentication to varied external sources.
17 #     Internal authentication supports the local database, OpenID, and
18 #     LDAP, but basic other auth sources such as Kerberos and more
19 #     exotic authenticators require PAM support to be useable.
20 #   * tidb: This is an alternate database engine for users who would
21 #     rather not use SQLite3 for some reason.  It is also potentially
22 #     more resiliant to corrupted writes.
23 go_build_tags="bindata sqlite pam tidb"
24 hostmakedepends="go-bindata"
25 makedepends="sqlite-devel pam-devel"
26 depends="git"
27 short_desc="Git with a cup of Tea"
28 maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
29 license="MIT"
30 homepage="https://gitea.io"
31 changelog="https://github.com/go-gitea/gitea/blob/master/CHANGELOG.md"
32 distfiles="https://github.com/go-gitea/gitea/archive/v${version}.tar.gz"
33 checksum=93b1e8fbad78dffada0736a26760eda175169771a065ca8a101cfa0ed70ed310
35 system_accounts="_gitea"
36 _gitea_homedir="/var/lib/gitea"
37 make_dirs="/var/lib/gitea 0755 _gitea _gitea
38  /var/log/gitea 0755 _gitea root"
39 conf_files="/etc/gitea.conf"
41 pre_build() {
42         cd $GOSRCPATH
43         make generate
44         cd $wrksrc
47 post_install() {
48         vlicense LICENSE
49         vsv gitea
50         vinstall custom/conf/app.ini.sample 0640 /etc gitea.conf