aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2021-04-03 19:27:09 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-04-03 22:47:49 +0000
commit1f4a757c0da13f631f756714539ab0b1fc12f3bf (patch)
treec1e92af726b9887c501f3d076240d2d4e5902acd
parentc63c64018b1da91d13d5bd1f534a890fc7271e6d (diff)
downloadaports-1f4a757c0da13f631f756714539ab0b1fc12f3bf.tar.gz
aports-1f4a757c0da13f631f756714539ab0b1fc12f3bf.tar.bz2
aports-1f4a757c0da13f631f756714539ab0b1fc12f3bf.tar.xz
testing/perl-digest-hmac: modernize
-rw-r--r--main/perl-digest-hmac/APKBUILD32
1 files changed, 18 insertions, 14 deletions
diff --git a/main/perl-digest-hmac/APKBUILD b/main/perl-digest-hmac/APKBUILD
index f26d7bca87..e347f7e7ab 100644
--- a/main/perl-digest-hmac/APKBUILD
+++ b/main/perl-digest-hmac/APKBUILD
@@ -1,30 +1,34 @@
+# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-digest-hmac
-_realname=Digest-HMAC
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=Digest-HMAC
pkgver=1.04
-pkgrel=0
+pkgrel=1
pkgdesc="Keyed-Hashing for Message Authentication Perl module"
-url="http://search.cpan.org/~gaas/Digest-HMAC-1.01/"
+url="https://metacpan.org/release/Digest-HMAC/"
arch="noarch"
-license="GPL PerlArtistic"
-depends="perl perl-digest-sha1"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl perl-digest-sha1 perl-digest-md5"
makedepends="perl-dev"
-install=
subpackages="$pkgname-doc"
-source="https://cpan.metacpan.org/authors/id/G/GA/GAAS/$_realname-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/A/AR/ARODLAND/Digest-HMAC-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
-_builddir="$srcdir"/$_realname-$pkgver
build() {
- cd "$_builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
}
package() {
- 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="d30b62e60bfa9f6c0f0c058e190938f13a08a70a816771a0641226c24045cb6dbd622756f1f88593fd3690442a45636bdcaf35457e9dfea6de5f8a342a538a6d Digest-HMAC-1.04.tar.gz"