# Template file for 'sinit'
pkgname=sinit
version=0.9.1
revision=1
build_style=gnu-makefile
replaces="sinit>=0"
short_desc="A simple init, initially based on Rich Felker’s minimal init"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="MIT"
homepage="http://tools.suckless.org/sinit/"
distfiles="http://dl.suckless.org/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=bdd21334b263611cf7d481e3ce9e57a16285fa9155869d877e5c33744ae324cd

pre_build() {
	LD=$CC
	cp ${FILESDIR}/config.h config.h
	sed -i 's|^CPPFLAGS =|CPPFLAGS +=|g' config.mk
	sed -i 's|^CFLAGS   =|CFLAGS +=|g' config.mk
	sed -i 's|^LDFLAGS  =|LDFLAGS +=|g' config.mk
}

post_install() {
	vlicense LICENSE
	vdoc README
}
