db-move: moved firefox-i18n from [testing] to [extra] (any)
[arch-packages.git] / perl-unicode-linebreak / trunk / PKGBUILD
blob457202e9436ed4488d22cf81eb847ce7341ddaad
1 # $ID$
2 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
4 pkgname=perl-unicode-linebreak
5 _dist=Unicode-LineBreak
6 pkgver=2019.001
7 pkgrel=5
8 pkgdesc="UAX #14 Unicode Line Breaking Algorithm"
9 arch=('x86_64')
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')
26 prepare() {
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"
32 build() {
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
36     perl Makefile.PL
37     make
40 check() {
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
44     make test
47 package() {
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"