aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-crypt-openssl-rsa/APKBUILD
blob: ee8060a06765da369d184ca2857a8d1edd813795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-crypt-openssl-rsa
_realname=Crypt-OpenSSL-RSA
pkgver=0.28
pkgrel=7
pkgdesc="RSA encoding and decoding, using the openSSL libraries"
url="http://search.cpan.org/~perler/"
arch="all"
license="Perl Artistic, GPL"
depends="perl perl-crypt-openssl-random"
makedepends="perl-dev libressl-dev"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PERLER/$_realname-$pkgver.tar.gz"

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

prepare() {
	cd $_builddir
	return 0
}

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

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

md5sums="86217a5036fc63779c30420b5fd84129  Crypt-OpenSSL-RSA-0.28.tar.gz"