summaryrefslogtreecommitdiff
path: root/office/lcal/bindir_destdir.diff
diff options
context:
space:
mode:
authorTracy Williams <t_s_williams[at]yahoo[dot]com>2011-01-02 12:33:46 -0200
committerRobby Workman <rworkman@slackbuilds.org>2011-01-10 15:04:20 -0600
commit087beaa3fbc1b121b498425e88d574c57787be4c (patch)
tree868a5b50019de24908b4e1c3c8f9eda50144ffe9 /office/lcal/bindir_destdir.diff
parent83ab8be7f63e65d9be0335c495942f33f226dc3b (diff)
downloadslackbuilds-087beaa3fbc1b121b498425e88d574c57787be4c.tar.gz
office/lcal: Added (generates graphical "lunar phase" calendar)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'office/lcal/bindir_destdir.diff')
-rw-r--r--office/lcal/bindir_destdir.diff33
1 files changed, 33 insertions, 0 deletions
diff --git a/office/lcal/bindir_destdir.diff b/office/lcal/bindir_destdir.diff
new file mode 100644
index 0000000000..264a753549
--- /dev/null
+++ b/office/lcal/bindir_destdir.diff
@@ -0,0 +1,33 @@
+diff -Naur lcal-2.1.0_orig/Makefile lcal-2.1.0/Makefile
+--- lcal-2.1.0_orig/Makefile 2006-08-04 19:02:48.000000000 -0700
++++ lcal-2.1.0/Makefile 2011-01-01 18:03:23.492235946 -0800
+@@ -103,7 +103,7 @@
+ MANDIR = $(DJDIR)/man/man1
+ CATDIR = $(DJDIR)/man/cat1
+ else # Unix
+- BINDIR = /usr/local/bin
++ BINDIR = /usr/bin
+ MANDIR = /usr/man/man1
+ CATDIR = /usr/man/cat1
+ endif
+@@ -192,12 +192,11 @@
+ groff -man -Tascii $(DOCDIR)/lcal.man >$(DOCDIR)/lcal-help.txt
+
+ install: $(EXECDIR)/$(LCAL) man
+- cp $(EXECDIR)/$(LCAL) $(BINDIR)
+- if [ -d $(MANDIR) ]; then \
+- cp $(DOCDIR)/lcal.man $(MANDIR)/lcal.1; \
+- $(PACK) $(MANDIR)/lcal.1; \
+- fi
+- if [ -d $(CATDIR) ]; then \
+- cp $(DOCDIR)/lcal.cat $(CATDIR)/lcal.1; \
+- $(PACK) $(CATDIR)/lcal.1; \
+- fi
++ mkdir -p $(DESTDIR)/$(BINDIR)
++ mkdir -p $(DESTDIR)/$(MANDIR)
++ mkdir -p $(DESTDIR)/$(CATDIR)
++ cp $(EXECDIR)/$(LCAL) $(DESTDIR)/$(BINDIR)
++ cp $(DOCDIR)/lcal.man $(DESTDIR)/$(MANDIR)/lcal.1
++ $(PACK) $(DESTDIR)/$(MANDIR)/lcal.1
++ cp $(DOCDIR)/lcal.cat $(DESTDIR)/$(CATDIR)/lcal.1
++ $(PACK) $(DESTDIR)/$(CATDIR)/lcal.1