+@@ -133,7 +133,7 @@
+ endif
+
+ $(PKGCONFIG): config.mk
+- sed 's|PREFIX|$(PREFIX)|;s|VERSION|$(VERSION)|' < imagequant.pc.in > $(PKGCONFIG)
++ sed 's|PREFIX|$(PREFIX)|;s|LIBDIR|$(LIBDIR)|;s|VERSION|$(VERSION)|' < imagequant.pc.in > $(PKGCONFIG)
+
+ .PHONY: all static shared clean dist distclean dll java cargo
+ .DELETE_ON_ERROR:
+--- libimagequant-2.12.1/imagequant.pc.in.orig 2018-06-03 21:46:28.000000000 +0200
++++ libimagequant-2.12.1/imagequant.pc.in 2018-07-21 18:57:30.940475377 +0200
+@@ -1,6 +1,6 @@
+ prefix=PREFIX
+ includedir=${prefix}/include
+-libdir=${prefix}/lib
++libdir=LIBDIR
+
+ Name: imagequant
+ Description: Small, portable C library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images.