aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-mime-charset
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-04-07 12:18:25 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-04-07 12:18:25 +0000
commite5e6f902dcab34f15f2ef48dad6dcc42abedd6b2 (patch)
tree50f7a8cd0e9272f00ff17cf2a1e75360dc17c2b6 /community/perl-mime-charset
parentfde0cc4960a0f94e0ec9045c99688ad81e11fa3c (diff)
downloadaports-e5e6f902dcab34f15f2ef48dad6dcc42abedd6b2.tar.bz2
aports-e5e6f902dcab34f15f2ef48dad6dcc42abedd6b2.tar.xz
community/perl-mime-charset: upgrade to 1.012.1, modernize APKBUILD
Diffstat (limited to 'community/perl-mime-charset')
-rw-r--r--community/perl-mime-charset/APKBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/community/perl-mime-charset/APKBUILD b/community/perl-mime-charset/APKBUILD
index 0729dc61d5..c64e07bec9 100644
--- a/community/perl-mime-charset/APKBUILD
+++ b/community/perl-mime-charset/APKBUILD
@@ -3,22 +3,27 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-mime-charset
_pkgreal=MIME-Charset
-pkgver=1.012
+pkgver=1.012.1
pkgrel=0
pkgdesc="Charset Information for MIME"
url="http://search.cpan.org/dist/MIME-Charset/"
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/N/NE/NEZUMI/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
+check() {
+ cd "$builddir"
+ make test
+}
+
prepare() {
- default_prepare || return 1
+ default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
@@ -28,15 +33,13 @@ prepare() {
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- make && make test
+ make
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-md5sums="1762b0d9e9379be684b704c247317276 MIME-Charset-1.012.tar.gz"
-sha256sums="cee5d1d4184ad46ca17d995335bc8d9b6d95e1e64584079d032cf5f0c82dcccd MIME-Charset-1.012.tar.gz"
-sha512sums="f116deb04912bdccfd98484ef82d643d23b4cb90bfdf88ddc60d0a3f857ac3f084a60681a6fae4f9a2d982d6f470c79f171688e44a4034e9533bb518a914e2fe MIME-Charset-1.012.tar.gz"
+sha512sums="aef14259b5934d3befee28efe1314e557323b8efc8ee751f673f32556ebf7a1dc6d93de83ebbe8409c451b66f78b50a260240f09c701e08f09c6887133b2c96e MIME-Charset-1.012.1.tar.gz"