#Packager: George Vlahavas # _cpanname is the module name as provided in CPAN. # For example: Archive-Zip # The corresponding package will be named: perl-Archive-Zip _cpanname=File-Remove pkgname=perl-${_cpanname} pkgver=1.60 pkgrel=1gv source=("https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/File-Remove-1.60.tar.gz") docs=("readme" "install" "license" "changes" "authors" "news" "todo" "manifest*") url=https://metacpan.org/pod/File::Remove slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-File-Remove (Remove files and directories)" "File::Remove::remove removes files and directories. It acts like" "/bin/rm, for the most part. Although unlink can be given a list of" "files, it will not remove directories; this module remedies that. It" "also accepts wildcards, * and ?, as arguments for filenames." ) build() { cd $startdir/src/${_cpanname}-$pkgver PERL_MM_USE_DEFAULT=1 perl Makefile.PL || exit 1 make OPTIMIZE="$CFLAGS" || exit 1 make install INSTALLDIRS=vendor DESTDIR=$startdir/pkg || exit 1 # Remove perllocal.pod and .packlist if present in the package ( for i in perllocal.pod .packlist; do find $startdir/pkg -name "$i" -exec rm -rf {} \; done ) || exit 1 }