From ecfeb597039f72ba1fbcb154e2b6367435a8cf80 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Mon, 24 Sep 2018 11:04:27 -0300 Subject: [PATCH] light: update to 1.2. --- srcpkgs/light/template | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/srcpkgs/light/template b/srcpkgs/light/template index 47ddb12c385..0557a29c417 100644 --- a/srcpkgs/light/template +++ b/srcpkgs/light/template @@ -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 " 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 -} -