aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-29 00:16:34 -0300
committerKevin Daudt <kdaudt@alpinelinux.org>2019-05-29 04:52:13 +0000
commit0a6aada2b9e53f2abc08b287e75741d21d90e9d1 (patch)
treeb2a1278471c1f9bd4687c626740c7ca7817ea0fb /testing
parent3d602b3952569c12d3989c24e2831e1345a2d71d (diff)
downloadaports-0a6aada2b9e53f2abc08b287e75741d21d90e9d1.tar.bz2
aports-0a6aada2b9e53f2abc08b287e75741d21d90e9d1.tar.xz
testing/perl-crypt-saltedhash: modernize, fix license
Closes GH-8233
Diffstat (limited to 'testing')
-rw-r--r--testing/perl-crypt-saltedhash/APKBUILD18
1 files changed, 5 insertions, 13 deletions
diff --git a/testing/perl-crypt-saltedhash/APKBUILD b/testing/perl-crypt-saltedhash/APKBUILD
index aa0318d509..34aa6af052 100644
--- a/testing/perl-crypt-saltedhash/APKBUILD
+++ b/testing/perl-crypt-saltedhash/APKBUILD
@@ -4,43 +4,35 @@
pkgname=perl-crypt-saltedhash
_pkgreal=Crypt-SaltedHash
pkgver=0.09
-pkgrel=0
+pkgrel=1
pkgdesc="Perl interface to functions that assist in working with salted hashes"
url="http://search.cpan.org/dist/Crypt-SaltedHash/"
arch="noarch"
-license="GPL PerlArtistic"
-cpandepends=""
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpanmakedepends="perl-test-fatal"
-cpancheckdepends="perl-test-fatal"
-depends="$cpandepends"
+depends="perl"
makedepends="perl-dev $cpanmakedepends"
-checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GS/GSHANK/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
- default_prepare || return 1
-
- cd "$builddir"
+ default_prepare
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
}
package() {
- cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
- cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}