Description: <short summary of the patch>
 Upstream uses a simple rpath call with $(R_PACKAGE_DIR) which would otherwise
 reflect the build chroot.
 .
 r-cran-readr (1.2.1-2) unstable; urgency=medium
 .
   * src/Makevars: Override R_PACKAGE_DIR to not let the temporary path
     from build chroot be coded in via rpath		 (Closes: #914633)
Author: Dirk Eddelbuettel <edd@debian.org>
Bug-Debian: https://bugs.debian.org/914633

--- r-cran-readr-1.2.1.orig/src/Makevars
+++ r-cran-readr-1.2.1/src/Makevars
@@ -1,4 +1,5 @@
 PKG_CXXFLAGS = -I. -Ircon
+R_PACKAGE_DIR = /usr/lib/R/site-library/readr
 PKG_LIBS = -L. -lrcon -L../inst/rcon -Wl,-rpath,$(R_PACKAGE_DIR)/rcon
 
 all: $(SHLIB)
