File fix-install-path.patch of Package untex
From: Alexey Svistunov <svalx@svalx.net> Date: 2024-12-13 18:23:02 +0300 Subject: fixing install paths Upstream: dead Enable DESTDIR use in Makefile --- Makefile.origin 2024-12-13 18:12:35.343381209 +0300 +++ Makefile 2024-12-13 19:18:14.113400401 +0300 @@ -1,19 +1,15 @@ -BINDIR=/usr/local/bin +BINDIR=$(DESTDIR)/usr/bin MANEXT=1 -MANDIR=/usr/local/man/man$(MANEXT) +MANDIR=$(DESTDIR)/usr/share/man/man$(MANEXT) CFLAGS=-O untex: untex.c $(CC) $(CFLAGS) -o untex untex.c -install: untex - cp untex $(BINDIR) - chmod 755 $(BINDIR)/untex - -install.man: untex.man - cp untex.man $(MANDIR)/untex.$(MANEXT) - chmod 644 $(MANDIR)/untex.$(MANEXT) +install: untex untex.man + install -Dm 755 untex $(BINDIR)/untex + install -Dm 644 untex.man $(MANDIR)/untex.$(MANEXT) tarfile: untex.c untex.man Makefile tar cvf untex-1.3.tar untex.c untex.man Makefile