diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-02 01:30:06 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-01-02 01:30:06 +0000 |
commit | 7019043405bb295c36e18041135ae25a541263da (patch) | |
tree | b8b2a00b04d801490c9a78d9ac3f3c798ac88ce9 /testing/perl-email-abstract/APKBUILD | |
parent | a85cf594bb7feb6115aa65609894b9ab0d3f8c0c (diff) | |
download | aports-7019043405bb295c36e18041135ae25a541263da.tar.bz2 aports-7019043405bb295c36e18041135ae25a541263da.tar.xz |
testing/perl-email-abstract: modernize and add package description
Diffstat (limited to 'testing/perl-email-abstract/APKBUILD')
-rw-r--r-- | testing/perl-email-abstract/APKBUILD | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/testing/perl-email-abstract/APKBUILD b/testing/perl-email-abstract/APKBUILD index 5cfc5c9396..e2751ef83d 100644 --- a/testing/perl-email-abstract/APKBUILD +++ b/testing/perl-email-abstract/APKBUILD @@ -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" |