diff --git a/srcpkgs/light/patches/00-no-help2man.patch b/srcpkgs/light/patches/00-no-help2man.patch deleted file mode 100644 index fbf232cd5d..0000000000 --- a/srcpkgs/light/patches/00-no-help2man.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- Makefile.orig 2016-05-10 01:34:59.000000000 +0000 -+++ Makefile 2016-12-15 13:22:36.601576649 +0000 -@@ -9,27 +9,21 @@ - HELP2MAN_VERSION := $(shell help2man --version 2>/dev/null) - - all: --ifndef HELP2MAN_VERSION --$(error "help2man is not installed") --endif - $(CC) $(CFLAGS) -g -o light src/helpers.c src/light.c src/main.c - exp: - $(CC) $(CFLAGS) -E src/helpers.c src/light.c - man: - help2man $(MANFLAGS) ./light | gzip - > light.1.gz - --install: all man -+install: all - mkdir -p $(BINDIR) - cp -f ./light $(BINDIR)/light - chown root $(BINDIR)/light - chmod 4755 $(BINDIR)/light -- mkdir -p $(MANDIR) -- mv light.1.gz $(MANDIR) - - uninstall: - rm $(BINDIR)/light - rm -rf /etc/light -- rm $(MANDIR)/light.1.gz - - clean: - rm -vfr *~ light light.1.gz diff --git a/srcpkgs/light/patches/01-fix-pie.patch b/srcpkgs/light/patches/01-fix-pie.patch deleted file mode 100644 index a85d517a79..0000000000 --- a/srcpkgs/light/patches/01-fix-pie.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- Makefile.orig 2016-12-15 13:28:15.000000000 +0000 -+++ Makefile 2016-12-15 13:29:23.893597661 +0000 -@@ -3,13 +3,13 @@ - MANDIR=$(PREFIX)/share/man/man1 - - CC=gcc --CFLAGS=-std=c89 -O2 -pedantic -Wall -I"./include" -+ORG_CFLAGS=-std=c89 -O2 -pedantic -Wall -I"./include" - MANFLAGS=-h -h -v -V - - HELP2MAN_VERSION := $(shell help2man --version 2>/dev/null) - - all: -- $(CC) $(CFLAGS) -g -o light src/helpers.c src/light.c src/main.c -+ $(CC) $(CFLAGS) $(ORG_CFLAGS) $(LDFLAGS) -g -o light src/helpers.c src/light.c src/main.c - exp: - $(CC) $(CFLAGS) -E src/helpers.c src/light.c - man: diff --git a/srcpkgs/light/template b/srcpkgs/light/template index b151e01ff8..f7c56b0742 100644 --- a/srcpkgs/light/template +++ b/srcpkgs/light/template @@ -1,17 +1,22 @@ # Template file for 'light' pkgname=light -version=1.0 +version=1.1.2 revision=1 build_style=gnu-makefile +make_use_env=1 +make_build_target=man +hostmakedepends="help2man" short_desc="Program to control backlight controllers" maintainer="Dennis Kraus " -license="GPL-3" +license="GPL-3.0-or-later" homepage="http://haikarainen.github.io/light/" -distfiles="https://github.com/haikarainen/light/archive/v${version}.tar.gz" -checksum=974608ee42ffe85cfd23184306d56d86ec4e6f4b0518bafcb7b3330998b1af64 +distfiles="https://github.com/haikarainen/light/archive/${version}.tar.gz" +checksum=291ef234929adb20fe96359724c5ccad36cf396dd110f7001654c21e17800032 do_install() { - vbin light + vbin light + gzip -d light.1.gz + vman light.1 chmod 4755 ${DESTDIR}/usr/bin/light }