42 lines
1.0 KiB
Bash
42 lines
1.0 KiB
Bash
# Template file for 'gogs'
|
|
pkgname=gogs
|
|
version=0.13.0
|
|
revision=1
|
|
build_style=go
|
|
go_import_path=gogs.io/gogs
|
|
go_build_tags="sqlite pam cert"
|
|
hostmakedepends="git curl"
|
|
makedepends="pam-devel"
|
|
depends="git"
|
|
short_desc="Self-hosted Git Service in Go"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://gogs.io"
|
|
distfiles="https://github.com/gogits/gogs/archive/v${version}.tar.gz"
|
|
checksum=59a8c4349ed104ccd44985e940a6cdb25fca1a6019212e7f65b30f1252f627ce
|
|
|
|
conf_files="/etc/gogs.ini"
|
|
system_accounts="gogs"
|
|
gogs_homedir="/srv/gogs"
|
|
gogs_shell="/bin/bash"
|
|
|
|
make_dirs="
|
|
/srv/gogs 0755 gogs gogs
|
|
/srv/gogs/repo 0755 gogs gogs
|
|
/srv/gogs/data/avatars 0755 gogs gogs
|
|
/srv/gogs/data/attachment 0755 gogs gogs
|
|
/var/log/gogs 0755 gogs gogs"
|
|
|
|
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
|
|
}
|