diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-08-09 07:42:36 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-08-09 07:45:50 +0000 |
commit | 531de8f66541cf414095d62984d9f33ae24c84d5 (patch) | |
tree | 099bc827b38145b6a7f3dedc73c93d13c79a83df | |
parent | c27968b9057e477739a2c0eb5190ed9bafd81d78 (diff) | |
download | aports-531de8f66541cf414095d62984d9f33ae24c84d5.tar.bz2 aports-531de8f66541cf414095d62984d9f33ae24c84d5.tar.xz |
main/perl-error: upgrade to 0.17025
Modernize APKBUILD, add check()
-rw-r--r-- | main/perl-error/APKBUILD | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/main/perl-error/APKBUILD b/main/perl-error/APKBUILD index a8dfd67bd0..25327bcb09 100644 --- a/main/perl-error/APKBUILD +++ b/main/perl-error/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=perl-error _realname=Error -pkgver=0.17024 +pkgver=0.17025 pkgrel=0 pkgdesc="Perl module error/exception handling in an OO-ish way" url="http://search.cpan.org/dist/Error/" @@ -12,21 +12,29 @@ makedepends="perl-dev" install= subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_realname-$pkgver.tar.gz" +builddir="$srcdir"/$_realname-$pkgver + +prepare() { + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} -_builddir="$srcdir"/$_realname-$pkgver build() { - cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 + cd "$builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install - # creates file collision among perl modules - find "$pkgdir" -name perllocal.pod -delete + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="7e3676a7fb14f65f568f12d4b40a2a72 Error-0.17024.tar.gz" -sha256sums="074db7c783a67b0667eca64a4f6a0c3de94998afc92c01d6453163eb04b9150d Error-0.17024.tar.gz" -sha512sums="886ad8d527936ddca564c466bb753e29bcb203ebc32bee7c8af8db05f70fcae17d3536f1f0163d17e3d1a0669da0c559ea0e5d14a1e83c4c7e329d4368ba3e77 Error-0.17024.tar.gz" +sha512sums="0cb77d8be2f759aaf8970f9d5fa5483ba5ba687c115f6bbeaa22afb1b5c50fe6f70b4dce19a3c8d1bf6e9bfad0af86f2e03faac493f428b04962e5337be3ae2b Error-0.17025.tar.gz" |