2014-02-06 11:35:43 +00:00
|
|
|
url=git://git.2f30.org/sinit
|
|
|
|
|
2014-02-05 16:48:33 +00:00
|
|
|
fetch() {
|
2014-02-06 11:35:43 +00:00
|
|
|
[ -d src/sinit ] || git clone $url src/sinit
|
2014-02-05 16:48:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2014-02-14 10:51:46 +00:00
|
|
|
cd src/sinit
|
2014-02-06 11:35:43 +00:00
|
|
|
make clean
|
|
|
|
make -j$nprocs CC=x86_64-linux-musl-gcc LDFLAGS=-static || return 1
|
2014-02-14 10:51:46 +00:00
|
|
|
cd -
|
2014-02-05 16:48:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
2014-02-14 10:51:46 +00:00
|
|
|
cd src/sinit
|
2014-02-06 11:35:43 +00:00
|
|
|
make PREFIX=$root install
|
2014-02-14 10:51:46 +00:00
|
|
|
cd -
|
|
|
|
cd $root
|
2014-02-06 12:16:16 +00:00
|
|
|
ln -sf /bin/sinit init
|
2014-02-14 10:51:46 +00:00
|
|
|
cd -
|
2014-02-05 16:48:33 +00:00
|
|
|
}
|