diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-crypt-cast5/APKBUILD | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/testing/perl-crypt-cast5/APKBUILD b/testing/perl-crypt-cast5/APKBUILD index fe5f282b2c..d6cdd3b6b7 100644 --- a/testing/perl-crypt-cast5/APKBUILD +++ b/testing/perl-crypt-cast5/APKBUILD @@ -4,35 +4,29 @@ pkgname=perl-crypt-cast5 _pkgreal=Crypt-CAST5 pkgver=0.05 -pkgrel=5 -pkgdesc="unknown" -url="http://search.cpan.org/dist/Crypt-CAST5/" +pkgrel=6 +pkgdesc="CAST5 block cipher" +url="https://metacpan.org/release/Crypt-CAST5" arch="all" -license="GPL PerlArtistic" -cpandepends="" -cpanmakedepends=" " -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +makedepends="perl-dev" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/B/BO/BOBMATH/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + 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}'` + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make && make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |