Date: Thursday, April 11, 2019 @ 05:19:58 Author: felixonmars Revision: 450938
addpkg: perl-ffi-checklib 0.23-1 Added: perl-ffi-checklib/ perl-ffi-checklib/repos/ perl-ffi-checklib/trunk/ perl-ffi-checklib/trunk/PKGBUILD ----------+ PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) Added: perl-ffi-checklib/trunk/PKGBUILD =================================================================== --- perl-ffi-checklib/trunk/PKGBUILD (rev 0) +++ perl-ffi-checklib/trunk/PKGBUILD 2019-04-11 05:19:58 UTC (rev 450938) @@ -0,0 +1,30 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=perl-ffi-checklib +pkgver=0.23 +pkgrel=1 +pkgdesc="Check that a library is available for FFI" +arch=('any') +license=('PerlArtistic') +url="https://metacpan.org/release/FFI-CheckLib" +depends=('perl') +checkdepends=('perl-test-exit' 'perl-test2-suite') +options=('!emptydirs') +source=("https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-CheckLib-$pkgver.tar.gz") +sha512sums=('6b7342c8b68a4ca1a204ce36224bc065bc5905390ca7bb9071ba7b8bd4f33b7a26b6842c6aea833b3315d3e1369c42898df0aedd2880509d1fefe813a9a6046a') + +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 +}