--- src/efivar.pc.in.orig	2014-10-15 15:48:49.000000000 +0200
+++ src/efivar.pc.in	2015-01-19 16:23:12.000000000 +0100
@@ -1,10 +1,11 @@
-prefix=/usr
-exec_prefix=/usr
-libdir=@@LIBDIR@@
-includedir=/usr/include
+prefix=%%PREFIX%%
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
 
 Name: efivar
 Description: UEFI Variable Management
 Version: @@VERSION@@
 Requires:
-Libs: -L${libdir} -lefivar -ldl
+Libs: -L${libdir} -lefivar
+Cflags: -I${includedir}
