[arch-commits] Commit in perl-unicode-linebreak/trunk (PKGBUILD)

Rémy Oudompheng remy at archlinux.org
Sun Oct 28 07:30:10 UTC 2018


    Date: Sunday, October 28, 2018 @ 07:30:09
  Author: remy
Revision: 337412

upgpkg: perl-unicode-linebreak 2018.003-1

Upstream update.
Include Unicode official test files for test suite.

Modified:
  perl-unicode-linebreak/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-28 07:17:18 UTC (rev 337411)
+++ PKGBUILD	2018-10-28 07:30:09 UTC (rev 337412)
@@ -3,8 +3,8 @@
 
 pkgname=perl-unicode-linebreak
 _dist=Unicode-LineBreak
-pkgver=2017.004
-pkgrel=2
+pkgver=2018.003
+pkgrel=1
 pkgdesc="UAX #14 Unicode Line Breaking Algorithm"
 arch=('x86_64')
 url="https://metacpan.org/release/${_dist}"
@@ -12,11 +12,23 @@
 depends=('perl' 'perl-mime-charset' 'libthai')
 checkdepends=('perl-test-pod')
 options=('!emptydirs')
-source=(https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/${_dist}-${pkgver}.tar.gz)
+source=(https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/${_dist}-${pkgver}.tar.gz
+        LineBreakTest-8.0.0.txt::https://www.unicode.org/Public/8.0.0/ucd/auxiliary/LineBreakTest.txt
+        GraphemeBreakTest-8.0.0.txt::https://www.unicode.org/Public/8.0.0/ucd/auxiliary/GraphemeBreakTest.txt)
 # Checksums from https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/CHECKSUMS
-md5sums=('de7672227922260ac92d20bbad29660b')
-sha256sums=('655bc3c4cb60ad0770d97816716cfe322f24e602c70e595f5941dfa02c40cb76')
+md5sums=('736dcb04f6a250bd28e4279f2b8592af'
+         '8bd863892b8b963331779873130ae45a'
+         '4356c6f90a74769e2d82487a01822cab')
+sha256sums=('860c92ff3e710f0a1ca3e7067dba3734540dfb5cb932936536225f7ffca571b1'
+            '149b14ab93b06c887a958fb16d0ad01193063ef69cc14f10338ae4d0accd6c28'
+            '0cedd6e0f5cadf57ce9cfc96beccfd083b0faa0809a631a777cd25f0316bfabb')
 
+prepare() {
+    # Copy Unicode 8.0 test files. Later versions do not pass.
+    cp -av "${srcdir}/LineBreakTest-8.0.0.txt" "${srcdir}/${_dist}-${pkgver}/test-data/LineBreakTest.txt"
+    cp -av "${srcdir}/GraphemeBreakTest-8.0.0.txt" "${srcdir}/${_dist}-${pkgver}/test-data/GraphemeBreakTest.txt"
+}
+
 build() {
     cd "${srcdir}/${_dist}-${pkgver}"
     unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT



More information about the arch-commits mailing list