xtitle: fix CFLAGS after gnu-makefile passes it as cmd arg

This commit is contained in:
Eivind Uggedal 2015-06-06 10:58:48 +00:00
parent 7233d09120
commit f3e5f098e9

View file

@ -3,15 +3,14 @@ pkgname=xtitle
version=0.2 version=0.2
revision=1 revision=1
build_style=gnu-makefile build_style=gnu-makefile
hostmakedepends="git"
makedepends="libxcb-devel xcb-util-devel xcb-util-wm-devel" makedepends="libxcb-devel xcb-util-devel xcb-util-wm-devel"
short_desc="Outputs X window titles" short_desc="Outputs X window titles"
maintainer="Eivind Uggedal <eivind@uggedal.com>" maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="Public Domain" license="Public Domain"
homepage="https://github.com/baskerville/xtitle" homepage="https://github.com/baskerville/xtitle"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=623ab45ed3a5dc85cac133cb7e06a3be88477bf32fa1138dcd045bcc1777d0f3
do_fetch() { pre_build() {
local url="git://github.com/baskerville/xtitle" sed -i 's/^\(CFLAGS *+=\)/override \1/' Makefile
msg_normal "Fetching source from $url ...\n"
git clone -b${version} ${url} ${pkgname}-${version}
} }