diff options
Diffstat (limited to 'development/cpan2tgz/cpan2tgz.SlackBuild')
-rw-r--r-- | development/cpan2tgz/cpan2tgz.SlackBuild | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/development/cpan2tgz/cpan2tgz.SlackBuild b/development/cpan2tgz/cpan2tgz.SlackBuild index 1350a59fdee79..532003334a884 100644 --- a/development/cpan2tgz/cpan2tgz.SlackBuild +++ b/development/cpan2tgz/cpan2tgz.SlackBuild @@ -66,10 +66,10 @@ make install DESTDIR=$PKG INSTALLSITEMAN1DIR=/usr/man/man1 for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done ) -# Remove some unnecessary files -find $PKG \ - -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true -rm -rf $PKG/usr/lib +# Remove unnecessary crap +eval $(perl '-V:archlib'); eval $(perl '-V:sitelib') +rm -rf $PKG/$archlib/* $PKG/$sitelib/* +rmdir --parents $PKG/$sitelib $PKG/$archlib 2>/dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING README Changelog $PKG/usr/doc/$PRGNAM-$VERSION @@ -79,4 +79,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -c n -l y $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |