void-packages/srcpkgs/light/patches/00-no-help2man.patch

32 lines
753 B
Diff

--- 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