aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-05-02 15:12:16 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-05-02 15:12:25 +0000
commit77e7a0f63aa10d0ebb7e858e5634caa7e2bd39a9 (patch)
treea164c60a540f65fb946e42e271912f749b4efd64 /main
parente7723ae89c832792eb4fe0615debdd1ea2fbbe43 (diff)
downloadaports-77e7a0f63aa10d0ebb7e858e5634caa7e2bd39a9.tar.bz2
aports-77e7a0f63aa10d0ebb7e858e5634caa7e2bd39a9.tar.xz
main/perl-crypt-openssl-rsa: upgrade to 0.30
Modernize APKBUILD, add check()
Diffstat (limited to 'main')
-rw-r--r--main/perl-crypt-openssl-rsa/APKBUILD37
1 files changed, 21 insertions, 16 deletions
diff --git a/main/perl-crypt-openssl-rsa/APKBUILD b/main/perl-crypt-openssl-rsa/APKBUILD
index 2db8c2297a..c8242adc30 100644
--- a/main/perl-crypt-openssl-rsa/APKBUILD
+++ b/main/perl-crypt-openssl-rsa/APKBUILD
@@ -1,37 +1,42 @@
# 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=10
+_pkgname=Crypt-OpenSSL-RSA
+pkgver=0.30
+pkgrel=0
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"
+depends="perl perl-crypt-openssl-random perl-crypt-openssl-guess"
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
+source="http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
- cd $_builddir
- return 0
+ default_prepare
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd $_builddir
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ cd $builddir
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
}
package() {
- cd $_builddir
+ cd $builddir
make DESTDIR="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="4a20c3f814e80ea15304b2a189001172e72237d703a0f9281e7e46d593c521508abfac3a259701994ec867f160821bec37e4e8234d04b792168db19b065ce324 Crypt-OpenSSL-RSA-0.28.tar.gz"
+sha512sums="7a6fb6dd3a454f97666f1ccdefae57641b8f79513b8ac3850b5508c27f3ad3195649b2979693e38350ea94d2f405390a77ca893431b2e349d4aa4eb06c0ba11b Crypt-OpenSSL-RSA-0.30.tar.gz"