light: use $CC and honor $CFLAGS
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
5637f8b373
commit
5abb0a7cbe
1 changed files with 4 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue