# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Sarah Hay <sarah@archlinux.org>
# Contributor: Arjan Timmerman <arjan@soulfly.nl>

pkgname=perl-extutils-pkgconfig
pkgver=1.16
pkgrel=13
pkgdesc="The Perl Pkgconfig module"
arch=(any)
url="http://gtk2-perl.sourceforge.net/"
license=('LGPL')
depends=('perl')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/X/XA/XAOC/ExtUtils-PkgConfig-$pkgver.tar.gz")
sha256sums=('bbeaced995d7d8d10cfc51a3a5a66da41ceb2bc04fedcab50e10e6300e801c6e')

build() {
  cd ExtUtils-PkgConfig-${pkgver}
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd ExtUtils-PkgConfig-${pkgver}
  make test
}

package() {
  cd ExtUtils-PkgConfig-${pkgver}
  make DESTDIR="${pkgdir}" install
}
