#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_libgnomeprint_path.dpatch by Mirco Bauer <meebey@meebey.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad gfax-0.7.4~/configure.in gfax-0.7.4/configure.in
--- gfax-0.7.4~/configure.in	2005-12-19 18:54:06.000000000 +0100
+++ gfax-0.7.4/configure.in	2006-02-03 22:00:20.639868008 +0100
@@ -54,7 +54,7 @@
 
 # SET THE DIRECTORY PATH FOR GNOME_PRINT_DATA_DIR
 if test "x$GNOME_PRINT_DATA_DIR" = "x" ; then
-	gpver=`ls ${prefix}/lib/pkgconfig/ | grep libgnomeprint`
+	gpver=libgnomeprint-2.2.pc
 	GNOME_PRINT_VERSION=`grep Version: ${prefix}/lib/pkgconfig/${gpver} | cut -f2 -d' '`
 	GNOME_PRINT_DATA_DIR="${datadir}/libgnomeprint/${GNOME_PRINT_VERSION}"
 	echo $GNOME_PRINT_DATA_DIR
