void-packages/srcpkgs/ergo/template

40 lines
1.0 KiB
Bash

# Template file for 'ergo'
pkgname=ergo
version=2.14.0
revision=1
build_style=go
go_import_path="github.com/ergochat/ergo"
go_ldflags="-X main.version=$version"
short_desc="Modern IRC server with integrated bouncer features and services"
maintainer="Allen Sobot <chilledfrogs@disroot.org>"
license="MIT"
homepage="https://ergo.chat/"
changelog="https://raw.githubusercontent.com/ergochat/ergo/master/CHANGELOG.md"
distfiles="https://github.com/ergochat/ergo/archive/v${version}.tar.gz"
checksum=60085302182e54b9afe1a3f0c4e3a9da16fecdaa6bc4c1f0aceccded856969dd
system_accounts="_ergo"
_ergo_homedir="/var/lib/ergo"
make_dirs="/var/lib/ergo 0755 _ergo _ergo"
post_install() {
vlicense LICENSE
vsconf default.yaml ergo.conf
vinstall ergo.motd 644 usr/share/${pkgname} default.motd
vcopy languages/ usr/share/${pkgname}/i18n/
vdoc docs/MANUAL.md
vdoc docs/MOTDFORMATTING.md
vdoc docs/USERGUIDE.md
vsv ergo
}
oragono_package() {
depends="${sourcepkg}>=${version}_${revision}"
build_style=meta
short_desc+=" (transitional dummy package)"
}