24 lines
694 B
Bash
24 lines
694 B
Bash
# Template file for 'sinit'
|
||
pkgname=sinit
|
||
version=1.0
|
||
revision=1
|
||
build_style=gnu-makefile
|
||
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="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
|
||
}
|