void-packages/srcpkgs/sinit/template

25 lines
690 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Template file for 'sinit'
pkgname=sinit
version=1.1
revision=1
build_style=gnu-makefile
short_desc="Simple init, initially based on Rich Felkers minimal init"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://tools.suckless.org/sinit/"
distfiles="http://dl.suckless.org/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=545a6dd100e17a089b009562a946d76ff0578d060c237d94d39fadc555f7b549
pre_build() {
LD=$CC
sed -i 's| -Os||g' config.mk
sed -i 's|^CPPFLAGS =|override CPPFLAGS +=|g' config.mk
sed -i 's|^CFLAGS =|override CFLAGS +=|g' config.mk
sed -i 's|^LDFLAGS =|override LDFLAGS +=|g' config.mk
}
post_install() {
vlicense LICENSE
vdoc README
}