void-packages/srcpkgs/sinit-git/template

32 lines
816 B
Text
Raw Normal View History

2014-04-22 20:14:27 +00:00
# Template file for 'sinit-git'
pkgname=sinit-git
2014-08-20 12:12:24 +00:00
version=20140820
2014-04-22 20:14:27 +00:00
revision=1
build_style=gnu-makefile
hostmakedepends="git"
2014-04-22 20:14:27 +00:00
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
2014-08-03 13:00:17 +00:00
sed -i 's|^CPPFLAGS =|CPPFLAGS +=|g' config.mk
sed -i 's|^CFLAGS =|CFLAGS +=|g' config.mk
sed -i 's|^LDFLAGS =|LDFLAGS +=|g' config.mk
2014-04-22 20:14:27 +00:00
}
post_install() {
2014-07-05 16:40:28 +00:00
vinstall LICENSE 644 usr/share/licenses/sinit
vinstall README 644 usr/share/doc/sinit
2014-04-22 20:14:27 +00:00
}