void-packages/srcpkgs/umurmur/template
2021-03-28 16:20:07 +02:00

36 lines
1.1 KiB
Bash

# Template file for 'umurmur'
pkgname=umurmur
version=0.2.20
revision=1
build_style=gnu-configure
configure_args="--enable-shmapi --with-ssl=openssl"
conf_files="/etc/umurmur/umurmur.conf"
hostmakedepends="automake libtool"
makedepends="libconfig-devel openssl-devel protobuf-c-devel"
short_desc="Minimalistic Mumble server"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="BSD-3-clause"
homepage="http://umurmur.net/"
changelog="https://github.com/umurmur/umurmur/raw/master/ChangeLog"
distfiles="https://github.com/umurmur/umurmur/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=b7b2978c3197aef0a6531f1cf0ee1aebb32a55ad8bda43064ce3a944edbcac83
system_accounts="umurmur"
umurmur_homedir="/var/lib/umurmur"
make_dirs="/var/lib/umurmur 0750 umurmur umurmur"
pre_configure() {
./autogen.sh
vsed -i \
-e 's/# username = "";/username = "umurmur";/' \
-e 's/# groupname = "";/groupname = "umurmur";/' \
umurmur.conf.example
}
post_install() {
vdoc README.md
vlicense LICENSE
vinstall umurmur.conf.example 644 etc/umurmur umurmur.conf
vsv umurmurd
}