void-packages/srcpkgs/sinit-git/template

32 lines
816 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Template file for 'sinit-git'
pkgname=sinit-git
version=20140820
revision=1
build_style=gnu-makefile
hostmakedepends="git"
provides="sinit-${version}_${revision}"
replaces="sinit>=0"
short_desc="A simple init, initially based on Rich Felkers 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
sed -i 's|^CPPFLAGS =|CPPFLAGS +=|g' config.mk
sed -i 's|^CFLAGS =|CFLAGS +=|g' config.mk
sed -i 's|^LDFLAGS =|LDFLAGS +=|g' config.mk
}
post_install() {
vinstall LICENSE 644 usr/share/licenses/sinit
vinstall README 644 usr/share/doc/sinit
}