mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 19:02:57 +02:00
sinit: update to 1.0 and remove config.h
This commit is contained in:
parent
1ebe4e86c1
commit
b463e7e1cf
2 changed files with 6 additions and 11 deletions
|
@ -1,5 +0,0 @@
|
||||||
/* See LICENSE file for copyright and license details. */
|
|
||||||
|
|
||||||
static char *const rcinitcmd[] = { "/bin/rc.init", NULL };
|
|
||||||
static char *const rcrebootcmd[] = { "/bin/rc.shutdown", "reboot", NULL };
|
|
||||||
static char *const rcpoweroffcmd[] = { "/bin/rc.shutdown", "poweroff", NULL };
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'sinit'
|
# Template file for 'sinit'
|
||||||
pkgname=sinit
|
pkgname=sinit
|
||||||
version=0.9.2
|
version=1.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
short_desc="A simple init, initially based on Rich Felker’s minimal init"
|
short_desc="A simple init, initially based on Rich Felker’s minimal init"
|
||||||
|
@ -8,14 +8,14 @@ maintainer="Ypnose <linuxienATlegtuxDOTorg>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="http://tools.suckless.org/sinit/"
|
homepage="http://tools.suckless.org/sinit/"
|
||||||
distfiles="http://dl.suckless.org/${pkgname}/${pkgname}-${version}.tar.gz"
|
distfiles="http://dl.suckless.org/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||||
checksum=52e74eae1eeb9dd3280cc93f96ea8cbc9a4984c75c4aaee1bd91ffd5a4aa83a5
|
checksum="78c2120a97a5e93b80606c5403bd731152f8a344e47aa4ab74970c1c11dc6fc0"
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
LD=$CC
|
LD=$CC
|
||||||
cp ${FILESDIR}/config.h config.h
|
sed -i 's| -Os||g' config.mk
|
||||||
sed -i 's|^CPPFLAGS =|CPPFLAGS +=|g' config.mk
|
sed -i 's|^CPPFLAGS =|override CPPFLAGS +=|g' config.mk
|
||||||
sed -i 's|^CFLAGS =|CFLAGS +=|g' config.mk
|
sed -i 's|^CFLAGS =|override CFLAGS +=|g' config.mk
|
||||||
sed -i 's|^LDFLAGS =|LDFLAGS +=|g' config.mk
|
sed -i 's|^LDFLAGS =|override LDFLAGS +=|g' config.mk
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue