Commit 0a6aada2 authored by Leo's avatar Leo Committed by Kevin Daudt
Browse files

testing/perl-crypt-saltedhash: modernize, fix license

Closes GH-8233
parent 3d602b39
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment