diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-04-16 12:43:03 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-04-16 12:43:22 +0000 |
commit | d4105372afdbd0e87fa6e4df03b3aed59af50a46 (patch) | |
tree | 7d95aeb6339fd75528375c9e00534655b58c21e3 /main/perl-crypt-openssl-random | |
parent | aeddda3e69eafa114bd1730791212cff396bc07a (diff) | |
download | aports-d4105372afdbd0e87fa6e4df03b3aed59af50a46.tar.bz2 aports-d4105372afdbd0e87fa6e4df03b3aed59af50a46.tar.xz |
main/perl-crypt-openssl-random: modernize APKBUILD, add check()
Diffstat (limited to 'main/perl-crypt-openssl-random')
-rw-r--r-- | main/perl-crypt-openssl-random/APKBUILD | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/main/perl-crypt-openssl-random/APKBUILD b/main/perl-crypt-openssl-random/APKBUILD index d2e2fd44af..031bb54fae 100644 --- a/main/perl-crypt-openssl-random/APKBUILD +++ b/main/perl-crypt-openssl-random/APKBUILD @@ -1,8 +1,8 @@ # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=perl-crypt-openssl-random -_realname=Crypt-OpenSSL-Random +_pkgname=Crypt-OpenSSL-Random pkgver=0.13 -pkgrel=0 +pkgrel=1 pkgdesc="RSA encoding and decoding, using the openSSL libraries" url="http://search.cpan.org/~iroberts/Crypt-OpenSSL-Random-0.04/" arch="all" @@ -11,21 +11,32 @@ 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/$_realname-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver -_builddir="$srcdir"/$_realname-$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" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 + cd "$builddir" + make } 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 +} + +check() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test } sha512sums="b278a33a2669446820f5587312569a9ee8b6a2ab3e29784a20dc2c22b34646f349beb6c5589df3c2992ad5a37b623afa5b4dd06ed7c93126dab96a7730d29624 Crypt-OpenSSL-Random-0.13.tar.gz" |