# Description: Perl interface to the gd2 graphics library # URL: http://search.cpan.org/~rurban/GD/ # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: p5-extutils-pkgconfig libgd # Optional: p5-class-xsaccessor p5-list-moreutils p5-pod-spell-commonmistakes p5-test-kwalitee p5-test-pod p5-text-csv_xs name=p5-gd version=2.78 release=1 source=(http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/GD-${version}.tar.gz) build() { cd GD-$version # PERL_MM_USE_DEFAULT=1 \ perl Makefile.PL -lib_gd_path=/usr/lib make OPTIMIZE="$CFLAGS" DESTDIR="$PKG" install find "$PKG" -depth \ -type f \( -name .packlist -o -name \*.bs -o -name perllocal.pod \) -delete , \ -type f -name autosplit.ix \( -exec grep -q '^[[:space:]]*package' {} \; -o -delete \) , \ -type d -empty -exec rmdir {} + }