30 lines
955 B
Bash
30 lines
955 B
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=perl-crypt-libressl-rsa
|
|
pkgver=0.32
|
|
pkgrel=1
|
|
pkgdesc='RSA encoding and decoding, using the LibreSSL libraries'
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL-2')
|
|
options=(!emptydirs)
|
|
depends=('perl' 'perl-crypt-libressl-random')
|
|
makedepends=('perl-crypt-libressl-guess')
|
|
url='https://metacpan.org/release/Crypt-OpenSSL-RSA'
|
|
source=("https://search.cpan.org/CPAN/authors/id/T/TO/TODDR/Crypt-OpenSSL-RSA-$pkgver.tar.gz")
|
|
sha512sums=('2972611a8fa4e9c44fd09c9e7fa32f0abd377230f14dcdfa99edab87bba2199c6a0cab4d1e08bdf3057959c0efd3343eb989e46f4befd572b15540e59f1e3c64')
|
|
_ddir="Crypt-OpenSSL-RSA-$pkgver"
|
|
|
|
build() (
|
|
cd "$srcdir/$_ddir"
|
|
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
|
|
unset PERL5LIB PERL_MM_OPT
|
|
/usr/bin/perl Makefile.PL
|
|
make
|
|
)
|
|
|
|
package() (
|
|
cd "$srcdir/$_ddir"
|
|
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
|
|
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname"
|
|
)
|