#Packager: George Vlahavas pkgname=perl-File-Which pkgver=1.21 pkgrel=1gv source=("https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/File-Which-$pkgver.tar.gz") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=https://metacpan.org/pod/File::Which slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-File-Which (Perl implementation of the which utility as an API)" "File::Which finds the full or relative paths to executable programs on" "the system. This is normally the function of which utility. which is" "typically implemented as either a program or a built in shell command." ) build() { cd $startdir/src/File-Which-$pkgver 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 }