# Template file for 'beanstalkd'
pkgname=beanstalkd
version=1.13
revision=1
build_style=gnu-makefile
hostmakedepends="pkg-config"
short_desc="Simple, fast, general-purpose work queue"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://beanstalkd.github.io"
changelog="https://raw.githubusercontent.com/beanstalkd/beanstalkd/refs/heads/master/CHANGELOG.md"
distfiles="https://github.com/kr/beanstalkd/archive/v${version}.tar.gz"
checksum=26292dcdc0a7011d2f8ad968612f2cd8b2ef07687224876015399ae85e9e5263
system_accounts="_beanstalkd"
replaces="beanstalk>=0"

make_dirs="/var/lib/beanstalkd 755 _beanstalkd _beanstalkd"

CFLAGS="-Wno-error"

pre_build() {
	vsed -i 's,override,,g' Makefile
}

post_install() {
	vman doc/beanstalkd.1
	vdoc README.md README
	vdoc doc/protocol.txt
	vlicense LICENSE
	vsv beanstalkd
}
