void-packages/srcpkgs/umurmur/template

36 lines
1,014 B
Bash
Raw Normal View History

# Template file for 'umurmur'
pkgname=umurmur
version=0.2.16a
2016-09-28 02:11:35 +00:00
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=d64df8f77ceaa4951d7f2adbb2dcc173841d1e387ef4cd2082c42150a84349a5
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
}