# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
setvar pkgname = 'perl-crypt-openssl-random'
setvar _realname = 'Crypt-OpenSSL-Random'
setvar pkgver = '0.11'
setvar pkgrel = '3'
setvar pkgdesc = ""RSA encoding and decoding, using the openSSL libraries""
setvar url = ""http://search.cpan.org/~iroberts/Crypt-OpenSSL-Random-0.04/""
setvar arch = ""all""
setvar license = ""Unknown""
setvar depends = ""perl""
setvar makedepends = ""perl-dev libressl-dev""
setvar install = ''
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/$_realname-$pkgver.tar.gz""

setvar _builddir = ""$srcdir"/$_realname-$pkgver"

proc build {
	cd $_builddir'
	PERL_MM_USE_DEFAULT=1' perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

proc package {
	cd $_builddir
	make DESTDIR="$pkgdir" install
	# creates file collision among perl modules
	find $pkgdir -name perllocal.pod -delete
}

setvar md5sums = ""5d71337503e0356ce1ce1481504e5885  Crypt-OpenSSL-Random-0.11.tar.gz""
setvar sha256sums = ""bb8c81c6a39b9b13a22d818ee9a746242f136f0fadceb6b9776ae615e7524c7a  Crypt-OpenSSL-Random-0.11.tar.gz""
setvar sha512sums = ""c579cb2b586dbabd697a9c7c989a360ed4bd8e9b28d7c93ad99a86bd9bd680a89c3fa77f6315a1105fd41bfdfa18087ca4cd51fb320faad7a6be9b90e3e69b95  Crypt-OpenSSL-Random-0.11.tar.gz""