24 lines
692 B
Bash
24 lines
692 B
Bash
# Template file for 'sinit'
|
||
pkgname=sinit
|
||
version=1.0
|
||
revision=2
|
||
build_style=gnu-makefile
|
||
short_desc="A simple init, initially based on Rich Felker’s minimal init"
|
||
maintainer='Juan RP <xtraeme@voidlinux.org>'
|
||
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
|
||
}
|