light: update to 1.1.2.
This commit is contained in:
parent
a6a4144617
commit
43e61226a9
3 changed files with 10 additions and 54 deletions
|
@ -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
|
|
@ -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:
|
|
@ -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 <kraus@posteo.de>"
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue