1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-11-25 07:31:05 +01:00
void-packages/common/hooks/post-install/02-remove-perl-files.sh
2024-03-29 08:12:19 +01:00

8 lines
229 B
Bash

# This hook removes perl pod/.packlist files.
hook() {
if [ "$pkgname" != "perl" -a -d "${PKGDESTDIR}" ]; then
find ${PKGDESTDIR} -type f -name perllocal.pod -delete
find ${PKGDESTDIR} -type f -name .packlist -delete
fi
}