void-packages/srcpkgs/beanstalkd/template

29 lines
770 B
Bash

# Template file for 'beanstalkd'
pkgname=beanstalkd
version=1.10
revision=4
short_desc="Simple, fast, general-purpose work queue"
maintainer="bougyman <bougyman@voidlinux.org>"
license="MIT"
homepage="http://kr.github.io/beanstalkd/"
distfiles="https://github.com/kr/beanstalkd/archive/v${version}.tar.gz"
checksum=923b1e195e168c2a91adcc75371231c26dcf23868ed3e0403cd4b1d662a52d59
system_accounts="beanstalkd"
replaces="beanstalk>=0"
make_dirs="/var/lib/beanstalkd 755 beanstalkd beanstalkd"
do_build() {
sed -i 's,sys/fcntl.h,fcntl.h,' sd-daemon.c
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs}
}
do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} install
vman doc/beanstalkd.1
vdoc README
vdoc doc/protocol.txt
vlicense LICENSE
vsv beanstalkd
}