light: use $CC and honor $CFLAGS

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-06-21 23:11:49 +02:00
parent 5637f8b373
commit 5abb0a7cbe
No known key found for this signature in database
GPG key ID: 6764EC32352D0647

View file

@ -1,7 +1,7 @@
# Template file for 'light'
pkgname=light
version=1.1.2
revision=1
revision=2
build_style=gnu-makefile
make_use_env=1
make_build_target=man
@ -14,7 +14,9 @@ distfiles="https://github.com/haikarainen/light/archive/${version}.tar.gz"
checksum=291ef234929adb20fe96359724c5ccad36cf396dd110f7001654c21e17800032
pre_build() {
sed -i 's|^CC.*||g' Makefile
sed -i Makefile \
-e "s;^\(CC\)=.*;\1=${CC};" \
-e "s;^\(CFLAGS\)=\(.*\);\1=\2 ${CFLAGS};"
}
do_install() {