diff options
Diffstat (limited to 'abs/core')
-rw-r--r-- | abs/core/perl_modules/perl-text-iconv/PKGBUILD | 36 |
1 files 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 <damir@archlinux.org> +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: Francois Charette <firmicus@gmx.net> 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; } |