2014-07-07 20:18:22 +02:00
|
|
|
# Template file for 'quark-git'
|
|
|
|
pkgname=quark-git
|
2014-08-20 14:12:09 +02:00
|
|
|
version=20140820
|
2014-07-07 20:18:22 +02:00
|
|
|
revision=1
|
|
|
|
build_style=gnu-makefile
|
2014-07-27 16:05:16 +02:00
|
|
|
hostmakedepends="git"
|
2014-07-07 20:18:22 +02:00
|
|
|
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| -I/usr/include||g' config.mk
|
|
|
|
sed -i 's| -L/usr/lib||g' config.mk
|
2014-08-03 14:41:20 +02: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-07-07 20:18:22 +02:00
|
|
|
sed -i 's|@strip|@${STRIP}|g' Makefile
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/quark
|
|
|
|
vinstall README 644 usr/share/doc/quark
|
|
|
|
}
|