summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-io-stringy/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/perl_modules/perl-io-stringy/PKGBUILD')
-rw-r--r--abs/core/perl_modules/perl-io-stringy/PKGBUILD33
1 files changed, 22 insertions, 11 deletions
diff --git a/abs/core/perl_modules/perl-io-stringy/PKGBUILD b/abs/core/perl_modules/perl-io-stringy/PKGBUILD
index 0fdf300..a39789e 100644
--- a/abs/core/perl_modules/perl-io-stringy/PKGBUILD
+++ b/abs/core/perl_modules/perl-io-stringy/PKGBUILD
@@ -1,23 +1,34 @@
-# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
+# $Id: PKGBUILD 143932 2011-11-30 21:29:16Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: François Charette <firmicus ατ gmx δοτ net>
pkgname=perl-io-stringy
pkgver=2.110
-pkgrel=6
+pkgrel=9
pkgdesc="I/O on in-core objects like strings/arrays"
-arch=('i686' 'x86_64')
-url="http://search.cpan.org/~DSKOLL/IO-stringy"
+arch=('any')
+url="http://search.cpan.org/dist/IO-stringy"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
-source=(http://www.cpan.org/authors/id/D/DS/DSKOLL/IO-stringy-$pkgver.tar.gz)
+source=("http://www.cpan.org/authors/id/D/DS/DSKOLL/IO-stringy-$pkgver.tar.gz")
md5sums=('2e6a976cfa5521e815c1fdf4006982de')
build() {
- cd $startdir/src/IO-stringy-$pkgver
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
- make || return 1
- make install DESTDIR=$startdir/pkg || return 1
- find $startdir/pkg -name '.packlist' -delete
- find $startdir/pkg -name '*.pod' -delete
+ cd "${srcdir}/IO-stringy-${pkgver}"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "${srcdir}/IO-stringy-${pkgver}"
+ make test
+}
+
+package() {
+ cd "${srcdir}/IO-stringy-${pkgver}"
+ make install DESTDIR="${pkgdir}"
+
+ find ${pkgdir} -name '.packlist' -delete
+ find ${pkgdir} -name '*.pod' -delete
}