From 49040ed4dfcd68dbf41c163a97e41d36e31555e3 Mon Sep 17 00:00:00 2001 From: d-kraus Date: Thu, 27 Oct 2016 22:31:41 +0200 Subject: [PATCH] New package: light-0.9 --- srcpkgs/light/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/light/template diff --git a/srcpkgs/light/template b/srcpkgs/light/template new file mode 100644 index 0000000000..9d03acf877 --- /dev/null +++ b/srcpkgs/light/template @@ -0,0 +1,22 @@ +# Template file for 'light' +pkgname=light +version=0.9 +revision=1 +build_style=gnu-makefile +short_desc="Program to control backlight controllers" +maintainer="Dennis Kraus " +license="GPL-3" +homepage="http://haikarainen.github.io/light/" +distfiles="https://github.com/haikarainen/light/archive/v${version}.tar.gz" +checksum=a6015bad4d2b17507a140896d7f30b4ab47eb7a0faef670edf3f1e30de9cdfb6 + +pre_build() { + sed -i 's|^CFLAGS=|override CFLAGS+=|g' Makefile + sed -i 's|src/main.c$|src/main.c $(LDFLAGS)|' Makefile +} + +do_install() { + vbin light + chmod 4755 ${DESTDIR}/usr/bin/light +} +