From b7604327e738fd36f3b6fea57305586acb098005 Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Fri, 24 Nov 2017 12:45:55 +0000 Subject: community/perl-crypt-rc4: modernize and add package description --- community/perl-crypt-rc4/APKBUILD | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'community') diff --git a/community/perl-crypt-rc4/APKBUILD b/community/perl-crypt-rc4/APKBUILD index 4f60d4d291..3d89e901d1 100644 --- a/community/perl-crypt-rc4/APKBUILD +++ b/community/perl-crypt-rc4/APKBUILD @@ -4,35 +4,40 @@ pkgname=perl-crypt-rc4 _pkgreal=Crypt-RC4 pkgver=2.02 -pkgrel=0 -pkgdesc="unknown" +pkgrel=1 +pkgdesc="Perl implementation of the RC4 encryption algorithm" url="http://search.cpan.org/dist/Crypt-RC4/" arch="noarch" license="GPL PerlArtistic" cpandepends="" -cpanmakedepends=" " +cpanmakedepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/S/SI/SIFUKURT/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -- cgit v1.2.3