void-packages/srcpkgs/quark-git/template
2014-12-13 19:57:54 +00:00

29 lines
730 B
Text

# Template file for 'quark-git'
pkgname=quark-git
version=20141213
revision=1
build_style=gnu-makefile
hostmakedepends="git"
short_desc="Simple httpd get daemon"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="MIT"
homepage="http://git.suckless.org/quark/"
provides="quark-${version}_${revision}"
replaces="quark>=0"
do_fetch() {
local url="git://git.suckless.org/quark"
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
}
pre_build() {
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/quark
vinstall README 644 usr/share/doc/quark
}