2 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
4 pkgname=perl-unicode-linebreak
5 _dist=Unicode-LineBreak
8 pkgdesc="UAX #14 Unicode Line Breaking Algorithm"
10 url="https://metacpan.org/release/${_dist}"
11 license=('PerlArtistic' 'GPL')
12 depends=('perl' 'perl-mime-charset' 'libthai')
13 checkdepends=('perl-test-pod')
14 options=('!emptydirs')
15 source=(https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/${_dist}-${pkgver}.tar.gz
16 LineBreakTest-8.0.0.txt::https://www.unicode.org/Public/8.0.0/ucd/auxiliary/LineBreakTest.txt
17 GraphemeBreakTest-8.0.0.txt::https://www.unicode.org/Public/8.0.0/ucd/auxiliary/GraphemeBreakTest.txt)
18 # Checksums from https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/CHECKSUMS
19 md5sums=('003d6da7a13700e069afed9238c864b9'
20 '8bd863892b8b963331779873130ae45a'
21 '4356c6f90a74769e2d82487a01822cab')
22 sha256sums=('486762e4cacddcc77b13989f979a029f84630b8175e7fef17989e157d4b6318a'
23 '149b14ab93b06c887a958fb16d0ad01193063ef69cc14f10338ae4d0accd6c28'
24 '0cedd6e0f5cadf57ce9cfc96beccfd083b0faa0809a631a777cd25f0316bfabb')
27 # Copy Unicode 8.0 test files. Later versions do not pass.
28 cp -av "${srcdir}/LineBreakTest-8.0.0.txt" "${srcdir}/${_dist}-${pkgver}/test-data/LineBreakTest.txt"
29 cp -av "${srcdir}/GraphemeBreakTest-8.0.0.txt" "${srcdir}/${_dist}-${pkgver}/test-data/GraphemeBreakTest.txt"
33 cd "${srcdir}/${_dist}-${pkgver}"
34 unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
35 export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
41 cd "${srcdir}/${_dist}-${pkgver}"
42 unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
43 export PERL_MM_USE_DEFAULT=1
48 cd "${srcdir}/${_dist}-${pkgver}"
49 unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
50 make install INSTALLDIRS=vendor DESTDIR="$pkgdir"