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

Closes: GH-8170
This commit is contained in:
Timothy Legge 2019-05-26 22:22:22 +00:00 committed by TBK
parent d95fe320a6
commit 789e4033ce
No known key found for this signature in database
GPG Key ID: 5FFB25718720C7D7

View File

@ -4,30 +4,27 @@
pkgname=perl-crypt-passwdmd5
_pkgreal=Crypt-PasswdMD5
pkgver=1.40
pkgrel=0
pkgrel=1
pkgdesc="Provide interoperable MD5-based crypt() functions"
url="https://metacpan.org/release/Crypt-PasswdMD5/"
arch="noarch"
license="GPL PerlArtistic"
license="GPL-1.0-or-later Artistic-1.0-Perl"
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/Crypt-PasswdMD5-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL installdirs=vendor
./Build
}
check() {
cd "$builddir"
./Build test
}
package() {
cd "$builddir"
./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}