core/perl-text-wrapi18n/PKGBUILD

33 lines
951 B
Bash
Raw Normal View History

# Platform Packages for Chakra, part of chakra-project.org
2010-08-16 11:20:01 +08:00
pkgname=perl-text-wrapi18n
_realname=Text-WrapI18N
pkgver=0.06
2012-05-11 05:19:02 +08:00
pkgrel=5
2010-08-16 11:20:01 +08:00
pkgdesc="Line wrapping module with support for multibyte, fullwidth, and combining characters and languages without whitespaces between words"
arch=('any')
2010-08-16 11:20:01 +08:00
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl-text-charwidth' 'perl>=5.10.0')
2010-08-16 11:20:01 +08:00
source=(http://search.cpan.org/CPAN/authors/id/K/KU/KUBOTA/${_realname}-${pkgver}.tar.gz)
options=(!emptydirs)
md5sums=('0799c16a00926e6c18d400c2e2861d5f')
build()
{
cd ${srcdir}/${_realname}-${pkgver}
2010-08-16 11:20:01 +08:00
# install module in vendor directories.
perl Makefile.PL INSTALLDIRS=vendor
make
make test
}
package() {
cd ${srcdir}/${_realname}-${pkgver}
make DESTDIR=${pkgdir} install
2010-08-16 11:20:01 +08:00
# remove perllocal.pod, .packlist, and empty dirs:
find ${pkgdir} -name '.packlist' -delete
find ${pkgdir} -name 'perllocal.pod' -delete
2012-05-11 05:19:02 +08:00
}