From 7189903bf70a6e85c5820af09b7e7897d1da2f54 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 24 May 2016 16:22:07 +0200 Subject: [PATCH] sres: pass CFLAGS and LDFLAGS. --- srcpkgs/sres/template | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/srcpkgs/sres/template b/srcpkgs/sres/template index e39c165d5b7..5f800740090 100644 --- a/srcpkgs/sres/template +++ b/srcpkgs/sres/template @@ -1,7 +1,7 @@ # Template file for 'sres' pkgname=sres version=0.2 -revision=1 +revision=2 build_style=gnu-makefile makedepends="xcb-util-devel" short_desc="Print the current screen resolution on stdout" @@ -11,10 +11,12 @@ homepage="https://github.com/baskerville/sres/" distfiles="https://github.com/baskerville/sres/archive/${version}.tar.gz" checksum=deb2030a32145984a2a0097a7f6245ab18c907ae233e10e519deccdf008e15e9 -do_build(){ - make CC=$CC ${makejobs} +post_extract() { + sed -i '/CFLAGS/s/ =/+=/' Makefile +} +do_build(){ + make CC="$CC" LDFLAGS="$LDFLAGS" ${makejobs} } - post_install(){ vlicense LICENSE }