#Packager: George Vlahavas pkgname=perl-IPC-System-Simple pkgver=1.25 pkgrel=1gv source=("https://cpan.metacpan.org/authors/id/P/PJ/PJF/IPC-System-Simple-$pkgver.tar.gz") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=https://metacpan.org/pod/IPC::System::Simple slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-IPC-System-Simple (Run commands simply with detailed diagnostics)" "Calling Perl's in-built system() function is easy, determining if it" "was successful is hard. Let's face it, $? isn't the nicest variable" "in the world to play with, and even if you do check it, producing a" "well-formatted error string takes a lot of work." "IPC::System::Simple takes the hard work out of calling external" "commands." ) build() { cd $startdir/src/IPC-System-Simple-$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 }