abinfo "Building needrestart ..."
unset PERL5LIB PERL_LOCAL_LIB_ROOT PERL_MB_OPT PERL_MM_OPT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL='--skipdeps'
make

abinfo "Installing needrestart ..."
make DESTDIR="$PKGDIR" install

abinfo "Installing man pages for needrestart(1) ..."
install -vDm644 "$SRCDIR"/man/needrestart.1 "$PKGDIR"/usr/share/man/man1/needrestart.1

abinfo "Cleaning up empty dirs ..."
rm -vr "$PKGDIR"/usr/lib/perl5/
