35 lines
899 B
Bash
35 lines
899 B
Bash
# Template file for 'gogs'
|
|
pkgname=gogs
|
|
version=0.11.79
|
|
revision=1
|
|
build_style=go
|
|
go_import_path="github.com/gogs/gogs"
|
|
go_build_tags="sqlite pam cert"
|
|
hostmakedepends="git curl"
|
|
makedepends="pam-devel"
|
|
depends="git"
|
|
short_desc="Self-hosted Git Service in Go"
|
|
maintainer="John Regan <john@jrjrtech.com>"
|
|
license="MIT"
|
|
homepage="https://gogs.io"
|
|
distfiles="https://github.com/gogits/gogs/archive/v${version}.tar.gz"
|
|
checksum=b71509311b94a7617b3235b7a04e20f4b55351f7b8910bbb077ae1c0a23de290
|
|
|
|
conf_files="/etc/gogs.ini"
|
|
system_accounts="gogs"
|
|
gogs_homedir="/srv/gogs"
|
|
gogs_shell="/bin/bash"
|
|
|
|
export CGO_ENABLED=1
|
|
|
|
post_install() {
|
|
install -d "$DESTDIR/usr/share/themes/gogs/default"
|
|
cp -r public "$DESTDIR/usr/share/themes/gogs/default/"
|
|
cp -r templates "$DESTDIR/usr/share/themes/gogs/default/"
|
|
vconf ${FILESDIR}/gogs.ini
|
|
vsconf ${FILESDIR}/gogs.ini
|
|
vlicense LICENSE
|
|
vdoc README.md
|
|
vsv gogs
|
|
}
|