From b4bfc37d84a31854afff21bb4f81fdd7421ec637 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 31 May 2018 16:42:08 +0000 Subject: perl-text-iconv: rebuild --- abs/core/perl_modules/perl-text-iconv/PKGBUILD | 36 ++++++++++++++++++-------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/abs/core/perl_modules/perl-text-iconv/PKGBUILD b/abs/core/perl_modules/perl-text-iconv/PKGBUILD index 1e35fce..b9ab604 100644 --- a/abs/core/perl_modules/perl-text-iconv/PKGBUILD +++ b/abs/core/perl_modules/perl-text-iconv/PKGBUILD @@ -1,25 +1,39 @@ -# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ -# Maintainer: damir +# $Id$ +# Maintainer: Felix Yan # Contributor: Francois Charette pkgname=perl-text-iconv _realname=Text-Iconv pkgver=1.7 -pkgrel=2 +pkgrel=14 pkgdesc="Interface to iconv codeset conversion" -arch=('i686' 'x86_64') +arch=('x86_64') url="http://search.cpan.org/dist/${_realname}/" license=('GPL' 'PerlArtistic') -depends=('perl>=5.10.0') +depends=('perl') options=('!emptydirs') source=(http://www.cpan.org/authors/id/M/MP/MPIOTR/${_realname}-${pkgver}.tar.gz) md5sums=('81b26e069eaebb084e91ea3c009b67ae') build() { - cd ${startdir}/src/${_realname}-${pkgver} - perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 - make DESTDIR=${startdir}/pkg install || return 1 - find ${startdir}/pkg -name '.packlist' -delete - find ${startdir}/pkg -name '*.pod' -delete + cd "${srcdir}/${_realname}-${pkgver}" + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "${srcdir}/${_realname}-${pkgver}" + make test +} + +package() { + cd "${srcdir}/${_realname}-${pkgver}" + make DESTDIR="${pkgdir}" install +# template start; name=perl-binary-module-dependency; version=1; +if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then + _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);') + _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);') + depends+=("perl>=$_perlver_min" "perl<$_perlver_max") +fi +# template end; } -- cgit v0.12