--- screen-4.2.1.org/Makefile.in
+++ screen-4.2.1/Makefile.in
@@ -15,6 +15,7 @@
 exec_prefix = @exec_prefix@
 datarootdir = @datarootdir@
 datadir = @datadir@
+libdir = $(prefix)/lib
 
 # don't forget to change mandir and infodir in doc/Makefile.
 bindir  = $(exec_prefix)/bin
@@ -96,9 +97,9 @@
 ###############################################################################
 install: installdirs install_bin
 	cd doc ; $(MAKE) install
-	-if [ -d /usr/lib/terminfo ]; then \
+	-if [ -d $(DESTDIR)$(libdir)/terminfo ]; then \
 		PATH="$$PATH:/usr/5bin" tic ${srcdir}/terminfo/screeninfo.src; \
-		chmod 644 /usr/lib/terminfo/s/screen*; \
+		chmod 644 $(DESTDIR)$(libdir)/terminfo/s/screen*; \
 	fi
 # Better do this by hand. E.g. under RCS...
 #	cat ${srcdir}/terminfo/screencap >> /etc/termcap
