# Maintainer: Leonardo Arena pkgname=perl-crypt-openssl-random _pkgname=Crypt-OpenSSL-Random pkgver=0.13 pkgrel=1 pkgdesc="RSA encoding and decoding, using the openSSL libraries" url="http://search.cpan.org/~iroberts/Crypt-OpenSSL-Random-0.04/" arch="all" license="Artistic-1.0 GPL+" depends="perl" makedepends="perl-dev libressl-dev perl-crypt-openssl-guess" install= subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver prepare() { default_prepare cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor } build() { cd "$builddir" make } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } sha512sums="b278a33a2669446820f5587312569a9ee8b6a2ab3e29784a20dc2c22b34646f349beb6c5589df3c2992ad5a37b623afa5b4dd06ed7c93126dab96a7730d29624 Crypt-OpenSSL-Random-0.13.tar.gz"