New package: light-0.9

This commit is contained in:
d-kraus 2016-10-27 22:31:41 +02:00 committed by Toyam Cox
parent 1d744ae804
commit 49040ed4df

22
srcpkgs/light/template Normal file
View file

@ -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 <kraus@posteo.de>"
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
}