# Maintainer: Felix Yan pkgname=perl-ffi-checklib pkgver=0.31 pkgrel=2 pkgdesc="Check that a library is available for FFI" arch=('any') license=('PerlArtistic') url="https://metacpan.org/release/FFI-CheckLib" depends=('perl') checkdepends=('perl-file-which' 'perl-test2-suite' 'perl-test2-tools-process') options=('!emptydirs') source=("https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-CheckLib-$pkgver.tar.gz") sha512sums=('25dd359cbec5417baa2c3d6a1152fb8a50b9d1423f8adb1c9ebe4422aefaed6e3b9b73015c6960c5d69dbc151df50ecb5a8e365192a2108013b501433c52e1e2') build() { cd FFI-CheckLib-$pkgver perl Makefile.PL INSTALLDIRS=vendor make } check() { cd FFI-CheckLib-$pkgver make test } package() { cd FFI-CheckLib-$pkgver make DESTDIR="$pkgdir" install }