New package: sinit-git-20140422_1
This commit is contained in:
parent
7d618c3fd7
commit
beb94451e9
2 changed files with 32 additions and 0 deletions
5
srcpkgs/sinit-git/files/config.h
Normal file
5
srcpkgs/sinit-git/files/config.h
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
/* 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 };
|
27
srcpkgs/sinit-git/template
Normal file
27
srcpkgs/sinit-git/template
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# Template file for 'sinit-git'
|
||||||
|
pkgname=sinit-git
|
||||||
|
version=20140422
|
||||||
|
revision=1
|
||||||
|
build_style=gnu-makefile
|
||||||
|
provides="sinit-${version}_${revision}"
|
||||||
|
replaces="sinit>=0"
|
||||||
|
short_desc="A simple init, initially based on Rich Felker’s minimal init"
|
||||||
|
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="http://tools.suckless.org/sinit/"
|
||||||
|
|
||||||
|
do_fetch() {
|
||||||
|
local url="git://git.suckless.org/sinit"
|
||||||
|
msg_normal "Fetching source from $url ...\n"
|
||||||
|
git clone ${url} ${pkgname}-${version}
|
||||||
|
}
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
LD=$CC
|
||||||
|
cp ${FILESDIR}/config.h config.h
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
||||||
|
vinstall README 644 usr/share/doc/${pkgname}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue