#Maintainer: George Vlahavas pkgname=perl-extutils-pkgconfig pkgver=1.12 pkgrel=2gv source=(http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/ExtUtils-PkgConfig-$pkgver.tar.gz) docs=("readme" "install" "copying" "changelog*" "authors" "news" "todo" "license" "maintainers" "copyright.pod") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-extutils-pkgconfig (simplistic interface to pkg-config)" "The pkg-config program retrieves information about installed" "libraries, usually for the purposes of compiling against and linking" "to them. ExtUtils::PkgConfig is a very simplistic interface to this" "utility, intended for use in the Makefile.PL of perl extensions which" "bind libraries that pkg-config knows. It is really just boilerplate" "code that you would've written yourself." ) build() { cd $startdir/src/ExtUtils-PkgConfig-$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 }