# $Id: PKGBUILD 93776 2013-07-10 07:27:16Z bpiotrowski $ # Maintainer: Sergej Pupykin # Contributor: Sergej Pupykin pkgname=perl-gd pkgver=2.50 pkgrel=2 pkgdesc="Interface to Gd Graphics Library" arch=('i686' 'x86_64' 'mips64el') url="http://search.cpan.org/dist/GD" license=('GPL' 'PerlArtistic') depends=('gd') options=('!emptydirs') source=(http://www.cpan.org/authors/id/L/LD/LDS/GD-$pkgver.tar.gz) md5sums=('b2f1e47dfc1c4e4fdda3277f165d36e5') build() { cd $srcdir/GD-$pkgver unset CFLAGS unset LDFLAGS PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make CCFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" } package() { cd $srcdir/GD-$pkgver make install DESTDIR=$pkgdir find $pkgdir -name '.packlist' -delete find $pkgdir -name '*.pod' -delete }