void-packages/srcpkgs/light/template
Jürgen Buchmüller 5abb0a7cbe
light: use $CC and honor $CFLAGS
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-06-21 23:13:20 +02:00

28 lines
692 B
Bash

# Template file for 'light'
pkgname=light
version=1.1.2
revision=2
build_style=gnu-makefile
make_use_env=1
make_build_target=man
hostmakedepends="help2man"
short_desc="Program to control backlight controllers"
maintainer="Dennis Kraus <kraus@posteo.de>"
license="GPL-3.0-or-later"
homepage="http://haikarainen.github.io/light/"
distfiles="https://github.com/haikarainen/light/archive/${version}.tar.gz"
checksum=291ef234929adb20fe96359724c5ccad36cf396dd110f7001654c21e17800032
pre_build() {
sed -i Makefile \
-e "s;^\(CC\)=.*;\1=${CC};" \
-e "s;^\(CFLAGS\)=\(.*\);\1=\2 ${CFLAGS};"
}
do_install() {
vbin light
gzip -d light.1.gz
vman light.1
chmod 4755 ${DESTDIR}/usr/bin/light
}