| 1 | Author: Anjandev Momi <[email protected]>
|
| 2 | URL: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=adjtimex
|
| 3 | Summary: create directory on install and make mandir respect DESTDIR
|
| 4 | ----
|
| 5 | diff -ruN adjtimex-debian-1.29-10.old/Makefile.in adjtimex-debian-1.29-10/Makefile.in
|
| 6 | |
| 7 | |
| 8 | @@ -8,7 +8,7 @@
|
| 9 | prefix = @prefix@
|
| 10 | man1dir=@mandir@/man1
|
| 11 | exec_prefix = @exec_prefix@
|
| 12 | -bindir=/sbin
|
| 13 | +bindir=$(DESTDIR)/$(prefix)/bin
|
| 14 | datadir = @datadir@
|
| 15 | datarootdir = @datarootdir@
|
| 16 |
|
| 17 | @@ -18,7 +18,7 @@
|
| 18 | # Extension (not including `.') for the manual page filenames.
|
| 19 | manext = 8
|
| 20 | # Where to put the manual pages.
|
| 21 | -mandir = $(prefix)/share/man/man$(manext)
|
| 22 | +mandir = $(DESTDIR)/$(prefix)/share/man/man$(manext)
|
| 23 |
|
| 24 | #### End of system configuration section. ####
|
| 25 |
|
| 26 | @@ -42,7 +42,8 @@
|
| 27 | $(CC) $(CFLAGS) -c mat.c
|
| 28 |
|
| 29 | install: all
|
| 30 | - $(INSTALL) -g bin -m 755 -o root adjtimex $(bindir)/adjtimex
|
| 31 | + $(INSTALL) -d -g root -m 755 -o root $(bindir)
|
| 32 | + $(INSTALL) -g root -m 755 -o root adjtimex $(bindir)/adjtimex
|
| 33 | $(INSTALL) -d -g root -m 755 -o root $(mandir)
|
| 34 | -$(INSTALL) -g root -m 644 -o root $(srcdir)/adjtimex.8 \
|
| 35 | $(mandir)/adjtimex.$(manext)
|