void-packages/srcpkgs/umurmur/template
2018-02-28 07:11:01 +00:00

35 lines
1,013 B
Bash

# Template file for 'umurmur'
pkgname=umurmur
version=0.2.17
revision=3
build_style=gnu-configure
configure_args="--enable-shmapi --with-ssl=openssl"
conf_files="/etc/umurmur/umurmur.conf"
hostmakedepends="automake libtool"
makedepends="libconfig-devel libressl-devel protobuf-c-devel"
short_desc="Minimalistic Mumble server"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="3-clause-BSD"
homepage="http://umurmur.net/"
distfiles="https://github.com/umurmur/umurmur/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=e77b7b6616768f4a1c07442afe49a772692f667b00c23cc85909d4dd0ce206d2
system_accounts="umurmur"
umurmur_homedir="/var/lib/umurmur"
make_dirs="/var/lib/umurmur 0750 umurmur umurmur"
pre_configure() {
./autogen.sh
sed -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
}