contrib/p5-file-slurp/Pkgfile
2023-03-04 08:46:13 -05:00

24 lines
626 B
Plaintext

# Description: Read/write/append files quickly
# URL: https://metacpan.org/release/File-Slurp
# Maintainer: John McQuah, jmcquah at disroot dot org
name=p5-file-slurp
_author=CAPOEIRAB
version=9999.32
release=1
source=(https://cpan.metacpan.org/authors/id/${_author::1}/${_author::2}/$_author/File-Slurp-$version.tar.gz)
build() {
cd File-Slurp-$version
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
make DESTDIR="$PKG" install
find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
find $PKG -depth -empty -delete
# fix permissions
find $PKG -type f -a ! -perm -u+w -exec chmod u+w '{}' +
}