void-packages/srcpkgs/light/template

29 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
}