From f3e5f098e9103b4a2b657b2bfd2c660841ebbbb7 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Sat, 6 Jun 2015 10:58:48 +0000 Subject: [PATCH] xtitle: fix CFLAGS after gnu-makefile passes it as cmd arg --- srcpkgs/xtitle/template | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/srcpkgs/xtitle/template b/srcpkgs/xtitle/template index 49474c7da8..cba6b254e7 100644 --- a/srcpkgs/xtitle/template +++ b/srcpkgs/xtitle/template @@ -3,15 +3,14 @@ pkgname=xtitle version=0.2 revision=1 build_style=gnu-makefile -hostmakedepends="git" makedepends="libxcb-devel xcb-util-devel xcb-util-wm-devel" short_desc="Outputs X window titles" maintainer="Eivind Uggedal " license="Public Domain" homepage="https://github.com/baskerville/xtitle" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=623ab45ed3a5dc85cac133cb7e06a3be88477bf32fa1138dcd045bcc1777d0f3 -do_fetch() { - local url="git://github.com/baskerville/xtitle" - msg_normal "Fetching source from $url ...\n" - git clone -b${version} ${url} ${pkgname}-${version} +pre_build() { + sed -i 's/^\(CFLAGS *+=\)/override \1/' Makefile }