diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-23 17:27:01 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-23 17:27:03 +0000 |
commit | 62750af0fedc04e43d6393aecd7d3d440a2ea2c5 (patch) | |
tree | 3acb0a814ae12a564b3df640e66e7fd66da12a83 /community/perl-email-messageid/APKBUILD | |
parent | 826feb495ee579cc205840c86feb60a363cd72ff (diff) | |
download | aports-62750af0fedc04e43d6393aecd7d3d440a2ea2c5.tar.bz2 aports-62750af0fedc04e43d6393aecd7d3d440a2ea2c5.tar.xz |
community/perl-[e-f]*: modernize APKBUILD
Changes:
- Move tests to check()
- Remove return 1
- Rename _builddir to builddir
- Add missing default_prepare in prepare()
Diffstat (limited to 'community/perl-email-messageid/APKBUILD')
-rw-r--r-- | community/perl-email-messageid/APKBUILD | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/community/perl-email-messageid/APKBUILD b/community/perl-email-messageid/APKBUILD index 874944e55a..7923857fbb 100644 --- a/community/perl-email-messageid/APKBUILD +++ b/community/perl-email-messageid/APKBUILD @@ -4,38 +4,43 @@ pkgname=perl-email-messageid _pkgreal=Email-MessageID pkgver=1.406 -pkgrel=0 +pkgrel=1 pkgdesc="Generate world unique message-ids." url="http://search.cpan.org/dist/Email-MessageID/" 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/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" + default_prepare + + 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="e1e235a4a3c64a6c1d07507c7049ff3b Email-MessageID-1.406.tar.gz" -sha256sums="ec425ddbf395e0e1ac7c6f95b4933c55c57ac9f1e7514003c7c904ec6cd342b8 Email-MessageID-1.406.tar.gz" sha512sums="c36861267a127372076391e5e6458ee19bbdc8d09c3b1ce3131d0cad1a82a6f9b2bc5a29df8bafa2450ea0e5c06993abf98928f2246e694d05875e40b7e36109 Email-MessageID-1.406.tar.gz" |