diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-12 12:25:46 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-12 12:47:11 +0000 |
commit | 1df47a1cd496ab30e029c39dac562cbc4f81a019 (patch) | |
tree | 309098388751f72216b5b7948f8dde45a77cb25f /community/perl-unicode-linebreak | |
parent | 0acb47ca63fd1efd149dd0c3fa6dd3b46ee9db47 (diff) | |
download | aports-1df47a1cd496ab30e029c39dac562cbc4f81a019.tar.bz2 aports-1df47a1cd496ab30e029c39dac562cbc4f81a019.tar.xz |
community/perl-unicode-linebreak: upgrade to 2017.004, modernize APKBUILD
Diffstat (limited to 'community/perl-unicode-linebreak')
-rw-r--r-- | community/perl-unicode-linebreak/APKBUILD | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/community/perl-unicode-linebreak/APKBUILD b/community/perl-unicode-linebreak/APKBUILD index f0dd7ae087..b2e8d2438a 100644 --- a/community/perl-unicode-linebreak/APKBUILD +++ b/community/perl-unicode-linebreak/APKBUILD @@ -3,8 +3,8 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-unicode-linebreak _pkgreal=Unicode-LineBreak -pkgver=2016.003 -pkgrel=1 +pkgver=2017.004 +pkgrel=0 pkgdesc="UAX #14 Unicode Line Breaking Algorithm" url="http://search.cpan.org/dist/Unicode-LineBreak/" arch="all" @@ -17,9 +17,13 @@ subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/N/NE/NEZUMI/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" -prepare() { - default_prepare || return 1 +check() { + cd "$builddir" + make test +} +prepare() { + default_prepare cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor @@ -28,15 +32,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="57dc12ff0511f9db95a2dbb6304342ca Unicode-LineBreak-2016.003.tar.gz" -sha256sums="e64e2d990a8cc90f8a387866509c35a93c50b812f5a2e60f3d9deb947a71dc24 Unicode-LineBreak-2016.003.tar.gz" -sha512sums="c2296ebd87a06c55d95f198ef355566c05257a75a38876c726cebe309f5e6082a7bfd7d86f28505e183e3150313e781a6f1999e8de8b35ee772d94845cd08e2f Unicode-LineBreak-2016.003.tar.gz" +sha512sums="f372174a761f87663761dc8b0f9bf387ffe289ba267fc0fb58353ac06dfa9418d4b0ac6e4e0d7833d842feacae4f8e90e521cd677ab22db1bf32e75f10f2e727 Unicode-LineBreak-2017.004.tar.gz" |