aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-email-mime-encodings
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-23 17:27:01 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-23 17:27:03 +0000
commit62750af0fedc04e43d6393aecd7d3d440a2ea2c5 (patch)
tree3acb0a814ae12a564b3df640e66e7fd66da12a83 /community/perl-email-mime-encodings
parent826feb495ee579cc205840c86feb60a363cd72ff (diff)
downloadaports-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-mime-encodings')
-rw-r--r--community/perl-email-mime-encodings/APKBUILD23
1 files changed, 13 insertions, 10 deletions
diff --git a/community/perl-email-mime-encodings/APKBUILD b/community/perl-email-mime-encodings/APKBUILD
index 5b0e7787dd..85eda79bd4 100644
--- a/community/perl-email-mime-encodings/APKBUILD
+++ b/community/perl-email-mime-encodings/APKBUILD
@@ -4,38 +4,41 @@
pkgname=perl-email-mime-encodings
_pkgreal=Email-MIME-Encodings
pkgver=1.315
-pkgrel=0
+pkgrel=1
pkgdesc="A unified interface to MIME encoding and decoding"
url="http://search.cpan.org/dist/Email-MIME-Encodings/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
-cpanmakedepends=" perl-capture-tiny "
+cpanmakedepends="perl-capture-tiny"
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"
+ 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="0fbe906d7918430750b1ba766cf95151 Email-MIME-Encodings-1.315.tar.gz"
-sha256sums="4c71045507b31ec853dd60152b40e33ba3741779c0f49bb143b50cf8d243ab5c Email-MIME-Encodings-1.315.tar.gz"
sha512sums="4cd787e099617b70963c8ef6372e2a16038c61170fdd343aad88a024ecd15c789fd2c8cc19830c3518b6648e428301eed1ae20f496fa97afbdd8bb7f3ae432aa Email-MIME-Encodings-1.315.tar.gz"