File paths.patch of Package crafty

Index: crafty-25.2/annotate.c
===================================================================
--- crafty-25.2.orig/annotate.c
+++ crafty-25.2/annotate.c
@@ -567,7 +567,7 @@ void AnnotatePositionHTML(TREE * RESTRIC
   for (rank = RANK8; rank >= RANK1; rank--) {
     fprintf(annotate_out, "<TR>\n");
     for (file = FILEA; file <= FILEH; file++) {
-      strcpy(filename, "bitmaps/");
+      strcpy(filename, "/usr/share/crafty/bitmaps/");
       if ((rank + file) % 2)
         strcat(filename, "w");
       else
Index: crafty-25.2/chess.h
===================================================================
--- crafty-25.2.orig/chess.h
+++ crafty-25.2/chess.h
@@ -62,16 +62,16 @@
 #    endif
 #  endif
 #  if !defined(BOOKDIR)
-#    define   BOOKDIR      "."
+#    define   BOOKDIR      "/usr/share/crafty"
 #  endif
 #  if !defined(LOGDIR)
 #    define   LOGDIR       "."
 #  endif
 #  if !defined(TBDIR)
-#    define   TBDIR        "./syzygy"
+#    define   TBDIR        "/usr/share/crafty/syzygy"
 #  endif
 #  if !defined(RCDIR)
-#    define   RCDIR        "."
+#    define   RCDIR        "/etc"
 #  endif
 #  include "lock.h"
 #  define MAXPLY                                 129
Index: crafty-25.2/option.c
===================================================================
--- crafty-25.2.orig/option.c
+++ crafty-25.2/option.c
@@ -980,7 +980,7 @@ int Option(TREE * RESTRICT tree) {
     char *readstat = (char *) -1;
     int lines = 0;
 
-    helpfile = fopen("crafty.hlp", "r");
+    helpfile = fopen("/usr/share/crafty/crafty.hlp", "r");
     if (!helpfile) {
       printf("ERROR.  Unable to open \"crafty.hlp\" -- help unavailable\n");
       return 1;
openSUSE Build Service is sponsored by