summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-08 14:23:08 +0200
committerErich Eckner <git@eckner.net>2016-04-11 11:29:20 +0200
commitad41a49f67c1acfd378a86be44232e1a63364b0d (patch)
tree58b7c1922daf17711de0c71d7fc845847fbdd10c
parenta84c01ae6a3e0b75e5231f0c65357d6984193c5e (diff)
downloadarchlinuxewe-ad41a49f67c1acfd378a86be44232e1a63364b0d.tar.xz
perl-perlio-layers neu
-rw-r--r--perl-perlio-layers/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/perl-perlio-layers/PKGBUILD b/perl-perlio-layers/PKGBUILD
new file mode 100644
index 000000000..c267598d8
--- /dev/null
+++ b/perl-perlio-layers/PKGBUILD
@@ -0,0 +1,39 @@
+pkgname=perl-perlio-layers
+_pkgname='PerlIO-Layers'
+pkgver=0.011
+pkgrel=1
+pkgdesc="Querying your filehandle's capabilities"
+arch=('x86_64' 'i686')
+url="https://github.com/Leont/perlio-layers"
+license=('GPL' 'PerlArtistic')
+depends=('perl')
+makedepends=('perl-digest-sha1')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('1d77e164aa5d5d24699a5479a423abdc1b07973fbe5a22d304fef2c560254b42')
+
+build() {
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
+ PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ MODULEBUILDRC=/dev/null
+
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ perl Build.PL
+ perl Build
+ )
+}
+
+check() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+ perl Build test
+ )
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ perl Build install
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}