community/perl-crypt-rc4: modernize and add package description

This commit is contained in:
Roberto Oliveira 2017-11-24 12:45:55 +00:00
parent 5bd7095f8a
commit b7604327e7

View File

@ -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
}