summaryrefslogtreecommitdiff
path: root/perl-file-map
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-08 14:25:11 +0200
committerErich Eckner <git@eckner.net>2016-04-11 11:29:20 +0200
commitd05335b187c876aa95c6a0275a328340f252f9b3 (patch)
tree4d18cca74989216bdf7a4e18f1406a1c1dc51334 /perl-file-map
parentad41a49f67c1acfd378a86be44232e1a63364b0d (diff)
downloadarchlinuxewe.git.save-d05335b187c876aa95c6a0275a328340f252f9b3.tar.xz
perl-file-map neu
Diffstat (limited to 'perl-file-map')
-rw-r--r--perl-file-map/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/perl-file-map/PKGBUILD b/perl-file-map/PKGBUILD
new file mode 100644
index 00000000..f7082fba
--- /dev/null
+++ b/perl-file-map/PKGBUILD
@@ -0,0 +1,39 @@
+pkgname=perl-file-map
+_pkgname='File-Map'
+pkgver=0.64
+pkgrel=1
+pkgdesc="Memory mapping made simple and safe."
+arch=('x86_64' 'i686')
+url="https://github.com/Leont/file-map"
+license=('GPL' 'PerlArtistic')
+depends=('perl')
+makedepends=('perl-perlio-layers' 'perl-test-warnings')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('03e42eb2de185b1e257c7a0ed9761a20b7d51f522464c713b20f43d47491a8c9')
+
+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
+}