[arch-commits] Commit in perl/trunk (PKGBUILD)
François Charette
francois at archlinux.org
Thu Oct 8 13:21:15 UTC 2009
Date: Thursday, October 8, 2009 @ 09:21:15
Author: francois
Revision: 54317
upgpkg: perl 5.10.1-5
keep core pod files (FS#16488)
Modified:
perl/trunk/PKGBUILD
----------+
PKGBUILD | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-10-08 13:12:32 UTC (rev 54316)
+++ PKGBUILD 2009-10-08 13:21:15 UTC (rev 54317)
@@ -4,7 +4,7 @@
# Contributor: francois <francois.archlinux.org>
pkgname=perl
pkgver=5.10.1
-pkgrel=4
+pkgrel=5
pkgdesc="Practical Extraction and Report Language"
arch=(i686 x86_64)
license=('GPL' 'PerlArtistic')
@@ -128,7 +128,7 @@
perl-xsloader=0.10
perlio-via-quotedprint=0.06
)
-options=('!makeflags')
+options=('!makeflags' '!purge')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
@@ -184,6 +184,17 @@
ln -sf c2ph pstruct; ln -sf s2p psed)
grep -Rl "${pkgdir}" ${pkgdir}/usr | \
xargs sed -i "s^${pkgdir}^^g"
+
+ # Remove all pod files *except* those under /usr/share/perl5/core_perl/pod/
+ # (FS#16488)
+ rm -f $pkgdir/usr/share/perl5/core_perl/*.pod
+ for d in $pkgdir/usr/share/perl5/core_perl/*; do
+ if [ -d $d -a $(basename $d) != "pod" ]; then
+ find $d -name *.pod -delete
+ fi
+ done
+ find $pkgdir/usr/lib -name *.pod -delete
+ find $pkgdir -name .packlist -delete
}
md5sums=('82400c6d34f7b7b43d0196c76cd2bbb1'
'9c4e3e56d71f123e92a68986df5ea924'
More information about the arch-commits
mailing list