void-packages/srcpkgs/sinit/template

25 lines
694 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.0
revision=1
build_style=gnu-makefile
short_desc="A simple init, initially based on Rich Felkers minimal init"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="MIT"
homepage="http://tools.suckless.org/sinit/"
distfiles="http://dl.suckless.org/${pkgname}/${pkgname}-${version}.tar.gz"
checksum="78c2120a97a5e93b80606c5403bd731152f8a344e47aa4ab74970c1c11dc6fc0"
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
}