diff -Naur pacman-3.2.1.orig/contrib/PKGBUILD.vim pacman-3.2.1/contrib/PKGBUILD.vim --- pacman-3.2.1.orig/contrib/PKGBUILD.vim 2008-12-10 04:15:48.000000000 -0600 +++ pacman-3.2.1/contrib/PKGBUILD.vim 2008-12-10 04:15:57.000000000 -0600 @@ -151,7 +151,7 @@ " options syn keyword pb_k_options options contained -syn match pbOptions /\(no\)\?\(strip\|docs\|libtool\|emptydirs\|zipman\|ccache\|distcc\|makeflags\|force\)/ contained +syn match pbOptions /\(no\)\?\(strip\|docs\|libtool\|emptydirs\|zipman\|ccache\|distcc\|makeflags\|force\|perlinfo\)/ contained syn match pbOptionsNeg /\!/ contained syn match pbOptionsDeprec /no/ contained syn region pbOptionsGroup start=/^options=(/ end=/)/ contains=pb_k_options,pbOptions,pbOptionsNeg,pbOptionsDeprec,pbIllegalOption,shDoubleQuote,shSingleQuote diff -Naur pacman-3.2.1.orig/etc/makepkg.conf pacman-3.2.1/etc/makepkg.conf --- pacman-3.2.1.orig/etc/makepkg.conf 2008-12-10 04:15:48.000000000 -0600 +++ pacman-3.2.1/etc/makepkg.conf 2008-12-10 04:15:57.000000000 -0600 @@ -65,9 +65,10 @@ #-- docs: Save doc and info directories #-- libtool: Leave libtool (.la) files in packages #-- emptydirs: Leave empty directories in packages +#-- perlinfo: Leave perllocal.pod and .packlist files in packages #-- zipman: Compress manpages with gzip # -OPTIONS=(strip docs libtool emptydirs zipman) +OPTIONS=(strip docs libtool emptydirs perlinfo zipman) #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512 INTEGRITY_CHECK=(md5) diff -Naur pacman-3.2.1.orig/etc/makepkg.conf.in pacman-3.2.1/etc/makepkg.conf.in --- pacman-3.2.1.orig/etc/makepkg.conf.in 2008-12-10 04:15:48.000000000 -0600 +++ pacman-3.2.1/etc/makepkg.conf.in 2008-12-10 04:15:57.000000000 -0600 @@ -65,9 +65,10 @@ #-- docs: Save doc and info directories #-- libtool: Leave libtool (.la) files in packages #-- emptydirs: Leave empty directories in packages +#-- perlinfo: Leave perllocal.pod and .packlist files in packages #-- zipman: Compress manpages with gzip # -OPTIONS=(strip docs libtool emptydirs zipman) +OPTIONS=(strip docs libtool emptydirs perlinfo zipman) #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512 INTEGRITY_CHECK=(md5) diff -Naur pacman-3.2.1.orig/scripts/makepkg.sh.in pacman-3.2.1/scripts/makepkg.sh.in --- pacman-3.2.1.orig/scripts/makepkg.sh.in 2008-12-10 04:15:48.000000000 -0600 +++ pacman-3.2.1/scripts/makepkg.sh.in 2008-12-10 04:16:11.000000000 -0600 @@ -41,7 +41,7 @@ startdir="$PWD" srcdir="$startdir/src" pkgdir="$startdir/pkg" -known_options=('strip' 'docs' 'libtool' 'emptydirs' 'zipman' 'ccache' 'distcc' 'makeflags' 'force') +known_options=('strip' 'docs' 'libtool' 'emptydirs' 'zipman' 'ccache' 'distcc' 'makeflags' 'force' 'perlinfo') readonly -a known_options # Options @@ -780,6 +780,12 @@ msg2 "$(gettext "Removing empty directories...")" find . -depth -type d -empty -delete fi + + if [ "$(check_option perlinfo)" = "n" ]; then + msg2 "$(gettext "Removing perllocal.pod and .packlist files...")" + find . -type f \( -name 'perllocal.pod' -o -name '.packlist' \) -delete + find . -depth -type d -empty -delete + fi } create_package() {