# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=ExtUtils-PkgConfig
pkgname=perl-${_realname}
pkgver=1.16
pkgrel=1
pkgdesc="The Perl Pkgconfig module"
arch=(any)
license=('LGPL')
url="https://gtk2-perl.sourceforge.io/"
groups=('perl-modules')
depends=('perl>=5.10.0')
source=(https://cpan.metacpan.org/authors/id/X/XA/XAOC/${_realname}-${pkgver}.tar.gz)
sha256sums=('bbeaced995d7d8d10cfc51a3a5a66da41ceb2bc04fedcab50e10e6300e801c6e')
options=('!emptydirs')

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

check() {
  cd ${_realname}-${pkgver}
  make test
}

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