diff --git a/debian/patches/0002-Hand-over-SHAREDIR-via-CPPFLAGS.patch b/debian/patches/0002-Hand-over-SHAREDIR-via-CPPFLAGS.patch index a876ba0..cf9b1c5 100644 --- a/debian/patches/0002-Hand-over-SHAREDIR-via-CPPFLAGS.patch +++ b/debian/patches/0002-Hand-over-SHAREDIR-via-CPPFLAGS.patch @@ -14,7 +14,7 @@ bin_PROGRAMS = unrtf -+AM_CPPFLAGS = -DSHAREDIR=\"$(sharedir)\" ++AM_CPPFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\" + unrtf_SOURCES = attr.c attr.h \ convert.c convert.h \ diff --git a/debian/patches/0003-Make-SHAREDIR-unrtf-default-path-for-output-format-c.patch b/debian/patches/0003-Make-SHAREDIR-unrtf-default-path-for-output-format-c.patch index 57d58c6..f45c4cb 100644 --- a/debian/patches/0003-Make-SHAREDIR-unrtf-default-path-for-output-format-c.patch +++ b/debian/patches/0003-Make-SHAREDIR-unrtf-default-path-for-output-format-c.patch @@ -15,7 +15,7 @@ #endif -#define CONFIG_DIR "/usr/local/lib/unrtf/" -+#define CONFIG_DIR SHAREDIR "/unrtf/" ++#define CONFIG_DIR PKGDATADIR "/" #define DEFAULT_OUTPUT "html" extern OutputPersonality *op; diff --git a/debian/patches/0004-Place-output-config-files-in-sharedir-instead-of-lib.patch b/debian/patches/0004-Place-output-config-files-in-sharedir-instead-of-lib.patch index b68deb9..5e63922 100644 --- a/debian/patches/0004-Place-output-config-files-in-sharedir-instead-of-lib.patch +++ b/debian/patches/0004-Place-output-config-files-in-sharedir-instead-of-lib.patch @@ -12,5 +12,5 @@ +++ b/outputs/Makefile.am @@ -1,2 +1,2 @@ -outputsdir = ${libdir}/${PACKAGE} -+outputsdir = ${sharedir}/${PACKAGE} ++outputsdir = ${pkgdatadir}/${PACKAGE} dist_outputs_DATA = html.conf latex.conf rtf.conf text.conf vt.conf