[arch-commits] Commit in perl-text-wrapi18n/trunk (PKGBUILD)

Kevin Piché kevin at archlinux.org
Fri Nov 26 21:21:56 UTC 2010


    Date: Friday, November 26, 2010 @ 16:21:55
  Author: kevin
Revision: 100955

upgpkg: perl-text-wrapi18n 0.06-4
Rebuilt for perl 5.12.2 and changed arch to any

Modified:
  perl-text-wrapi18n/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-11-26 21:16:52 UTC (rev 100954)
+++ PKGBUILD	2010-11-26 21:21:55 UTC (rev 100955)
@@ -4,25 +4,30 @@
 pkgname=perl-text-wrapi18n
 _realname=Text-WrapI18N
 pkgver=0.06
-pkgrel=3
+pkgrel=4
 pkgdesc="Line wrapping module with support for multibyte, fullwidth, and combining characters and languages without whitespaces between words"
-arch=(i686 x86_64)
+arch=('any')
 license=('GPL' 'PerlArtistic')
 url="http://search.cpan.org/dist/${_realname}/"
-depends=('perl>=5.10.0')
+depends=('perl-text-charwidth' 'perl>=5.10.0')
 source=(http://search.cpan.org/CPAN/authors/id/K/KU/KUBOTA/${_realname}-${pkgver}.tar.gz)
 options=(!emptydirs)
 md5sums=('0799c16a00926e6c18d400c2e2861d5f')
 
 build()
 {
-  cd  $startdir/src/${_realname}-${pkgver}
+  cd ${srcdir}/${_realname}-${pkgver}
   # install module in vendor directories.
-  /usr/bin/perl Makefile.PL INSTALLDIRS=vendor || return 1
-  /usr/bin/make || return 1
-  /usr/bin/make DESTDIR=${startdir}/pkg install
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+  make test
+}
 
+package() {
+  cd  ${srcdir}/${_realname}-${pkgver}
+  make DESTDIR=${pkgdir} install
+
   # remove perllocal.pod, .packlist, and empty dirs:
-  /usr/bin/find ${startdir}/pkg -name '.packlist' -delete
-  /usr/bin/find ${startdir}/pkg -name 'perllocal.pod' -delete
+  find ${pkgdir} -name '.packlist' -delete
+  find ${pkgdir} -name 'perllocal.pod' -delete
 }




More information about the arch-commits mailing list