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

Florian Pritz bluewind at archlinux.org
Thu Jun 1 18:12:35 UTC 2017


    Date: Thursday, June 1, 2017 @ 18:12:35
  Author: bluewind
Revision: 232488

fix build with perl 5.26

Modified:
  perl-unicode-stringprep/trunk/PKGBUILD

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++------------------
 1 file changed, 29 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-01 18:08:44 UTC (rev 232487)
+++ PKGBUILD	2017-06-01 18:12:35 UTC (rev 232488)
@@ -3,7 +3,6 @@
 
 pkgname=perl-unicode-stringprep
 pkgver=1.105
-_pkgver=1.104
 pkgrel=1
 pkgdesc="Preparation of Internationalized Strings (RFC 3454)"
 arch=('any')
@@ -10,25 +9,37 @@
 url="http://search.cpan.org/dist/Unicode-Stringprep/"
 license=('GPL' 'PerlArtistic')
 depends=('perl')
-makedepends=('perl-test-nowarnings')
+makedepends=('perl-module-build>=0.42')
+checkdepends=('perl-test-nowarnings')
 provides=("perl-unicode-stringprep-bidi=$pkgver" "perl-unicode-stringprep-mapping=$pkgver"
 	  "perl-unicode-stringprep-prohibited=$pkgver" "perl-unicode-stringprep-unassigned=$pkgver")
 options=(!emptydirs)
-source=("http://search.cpan.org/CPAN/authors/id/C/CF/CFAERBER/Unicode-Stringprep-${_pkgver}.tar.gz")
-md5sums=('cd19b39c9d3dd7caf6db4b2bf3464a72')
+source=("http://search.cpan.org/CPAN/authors/id/C/CF/CFAERBER/Unicode-Stringprep-$pkgver.tar.gz")
+md5sums=('bf9ffbc387cc12d67a3875be1cd8e105')
+_ddir="Unicode-Stringprep-$pkgver"
 
-build() {
-  local _dir=$(find "$srcdir" -maxdepth 2 -type f -name 'Makefile.PL')
-  cd $(dirname "$_dir")
-  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
-  make
-}
+build()
+(
+  cd "$srcdir/$_ddir"
+  export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
+  unset PERL5LIB PERL_MB_OPT
+  /usr/bin/perl Build.PL
+  ./Build
+)
 
-package() {
-  local _dir=$(find "$srcdir" -maxdepth 2 -type f -name 'Makefile.PL')
-  cd $(dirname "$_dir")
-  make install DESTDIR="${pkgdir}"
-  # remove perllocal.pod and .packlist
-  find "$pkgdir" -name perllocal.pod -delete
-  find "$pkgdir" -name .packlist -delete
-}
+check()
+(
+  cd "$srcdir/$_ddir"
+  export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
+  unset PERL5LIB PERL_MB_OPT
+  ./Build test
+)
+
+package()
+(
+  cd "$srcdir/$_ddir"
+  export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
+  unset PERL5LIB PERL_MB_OPT
+  ./Build install installdirs=vendor destdir="$pkgdir"
+  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+)



More information about the arch-commits mailing list