pkg:setup ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5" ENV.prepend_path "PERL5LIB", libexec/"lib" inreplace "extract_url.pl", "#!/usr/bin/env perl", "#!/usr/bin/perl" %w[MIME::Parser HTML::Parser Pod::Usage Env Getopt::Long Curses Curses::UI].each do |r| resource(r).stage do perl Makefile.PL INSTALL_BASE=#{libexec} make make DESTDIR=${PKG_DEST} install