22 lines
593 B
Bash
22 lines
593 B
Bash
# 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
|
|
}
|
|
|