void-packages/srcpkgs/scron/template

33 lines
746 B
Bash

# Template file for 'scron'
pkgname=scron
version=0.4
revision=3
build_style=gnu-makefile
short_desc="Simple cron daemon"
maintainer='Juan RP <xtraeme@voidlinux.org>'
license="MIT"
homepage="http://git.2f30.org/scron/"
distfiles="http://dl.2f30.org/releases/${pkgname}-${version}.tar.gz"
checksum=4ae8225a3991e42e29791d981192c9daf5b9b02609f68775768fe1598ae2ce18
provides="cron-daemon-0_1"
alternatives="
crond:crond:/etc/sv/scron
crond:crond:/usr/bin/scrond
"
pre_build() {
# STFU gcc
sed -i 's|BSD_SOURCE|DEFAULT_SOURCE|g' Makefile
sed -i 's|^CC|#CC|g' Makefile
sed -i 's|^CFLAGS|#CFLAGS|g' Makefile
sed -i 's|^LDFLAGS|#LDFLAGS|g' Makefile
}
do_install() {
vbin crond scrond
vsv scron
vlicense LICENSE
vdoc README
vman scron.1
}