summaryrefslogtreecommitdiff
path: root/community-testing/perl-gd/PKGBUILD
blob: b29f364b05229fd4c5db4bf3c803efa2f5b6399f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-gd
pkgver=2.44
pkgrel=4
pkgdesc="Interface to Gd Graphics Library"
arch=('i686' 'x86_64')
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=('9b9a4d78a5af0616a96264b0aa354859')

build() {
  cd  $srcdir/GD-$pkgver

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

  make
}
package() {
  cd  $srcdir/GD-$pkgver
  make install DESTDIR=$pkgdir
  install -D -m0644 GD/Group.pm $pkgdir/usr/lib/perl5/vendor_perl/GD/Group.pm
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}