testing/perl-email-abstract: modernize and add package description

This commit is contained in:
Roberto Oliveira 2018-01-02 01:30:06 +00:00
parent a85cf594bb
commit 7019043405

View File

@ -4,8 +4,8 @@
pkgname=perl-email-abstract
_pkgreal=Email-Abstract
pkgver=3.008
pkgrel=0
pkgdesc="unknown"
pkgrel=1
pkgdesc="Unified interface to mail representations"
url="http://search.cpan.org/dist/Email-Abstract/"
arch="noarch"
license="GPL PerlArtistic"
@ -16,26 +16,29 @@ makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_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
}
md5sums="dbfc069ffb5f8c96989bf62f0df5d756 Email-Abstract-3.008.tar.gz"
sha256sums="fc7169acb6c43df7f005e7ef6ad08ee8ca6eb6796b5d1604593c997337cc8240 Email-Abstract-3.008.tar.gz"
sha512sums="efead64612562fb9d644fa830b2f29e0701af0f3ddeb118992badff7c7a45cb569ad4644a7b226cc625cdabfb3f5db155284eb68042928265bfc5c230f4bf40a Email-Abstract-3.008.tar.gz"