light: update to 1.2.

This commit is contained in:
maxice8 2018-09-24 11:04:27 -03:00 committed by maxice8
parent e65d26d96a
commit ecfeb59703

View file

@ -1,28 +1,17 @@
# 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"
version=1.2
revision=1
build_style=gnu-configure
configure_args="--with-udev"
hostmakedepends="automake"
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
distfiles="https://github.com/haikarainen/light/archive/v${version}.tar.gz"
checksum=27dd588f06afbaabf6050abdf5bddc571c71ff26451e3ac6d1f116f80ed7dbbd
pre_build() {
sed -i Makefile \
-e "s;^\(CC\)=.*;\1=${CC};" \
-e "s;^\(CFLAGS\)=\(.*\);\1=\2 ${CFLAGS};"
pre_configure() {
autoreconf -fi
}
do_install() {
vbin light
gzip -d light.1.gz
vman light.1
chmod 4755 ${DESTDIR}/usr/bin/light
}