aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-crypt-x509/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2019-11-11 14:45:26 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-11-11 14:45:57 +0000
commitf906e5d3abae510e70512698160481e3a9e9cf73 (patch)
tree02836ba81662527173617c3f3c6541c19a68813e /main/perl-crypt-x509/APKBUILD
parent52f4e7cb57c716d3965c79e179756455037876b4 (diff)
downloadaports-f906e5d3abae510e70512698160481e3a9e9cf73.tar.gz
aports-f906e5d3abae510e70512698160481e3a9e9cf73.tar.bz2
aports-f906e5d3abae510e70512698160481e3a9e9cf73.tar.xz
main/perl-crypt-x509: upgrade to 0.52
Update source, license, add check(), modernize APKBUILD
Diffstat (limited to 'main/perl-crypt-x509/APKBUILD')
-rw-r--r--main/perl-crypt-x509/APKBUILD29
1 files changed, 14 insertions, 15 deletions
diff --git a/main/perl-crypt-x509/APKBUILD b/main/perl-crypt-x509/APKBUILD
index 8cec3a84ef..91b13e470f 100644
--- a/main/perl-crypt-x509/APKBUILD
+++ b/main/perl-crypt-x509/APKBUILD
@@ -2,40 +2,39 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-crypt-x509
-_pkgreal=Crypt-X509
-pkgver=0.51
+_pkgname=Crypt-X509
+pkgver=0.52
pkgrel=0
pkgdesc="Parse a X.509 certificate"
url="http://search.cpan.org/dist/Crypt-X509/"
arch="noarch"
-license="GPL PerlArtistic"
+license="Artistic-1.0-Perl"
cpandepends="perl-convert-asn1"
-cpanmakedepends=" "
+cpanmakedepends=
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/A/AJ/AJUNG/$_pkgreal-$pkgver.tar.gz"
-
-_builddir="$srcdir/$_pkgreal-$pkgver"
+source="https://cpan.metacpan.org/authors/id/M/MR/MRSCOTTY/Crypt-X509-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
- cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
- make && make test
+ make
+}
+
+check() {
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make test
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="aadab2960d2bd65a212d1bd7f50e282a Crypt-X509-0.51.tar.gz"
-sha256sums="0fa08246f6342cc4f6d5592ffb4a48b68a6aa49c5d65d0773769252d9ba743f3 Crypt-X509-0.51.tar.gz"
-sha512sums="3004bffe23de076a534e2aa75b8892fc8aa3cfebf1d03e177c58be4ba245f958748c68a302f8e97d2dd9fc1728c26fd08fe7b5e238acfacef6b99900bd7aa3a1 Crypt-X509-0.51.tar.gz"
+sha512sums="fc02335f8d3696db709867afc31b1c93b3598c54c0575e4dd2fb50e4ce626d82ac9c09d6ca9b79b42828d252a1a687ee54be203db45d957fec58fb76d239a2d5 Crypt-X509-0.52.tar.gz"