blob: 220580e9dd87d4f2cd3fc0dea130efb40ccedd4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=perl-file-map
_pkgname='File-Map'
pkgver=0.66
pkgrel=2
_distdir="${_pkgname}-${pkgver}"
pkgdesc="Memory mapping made simple and safe."
arch=('x86_64' 'i686' 'pentium4')
url="https://github.com/Leont/file-map"
license=('GPL' 'PerlArtistic')
optdepends=(
'perl')
depends=(
'perl>=5.30'
'perl<5.31'
'perl-carp'
'perl-perlio-layers'
'perl-sub-exporter-progressive>=0.001005'
'perl-xsloader')
makedepends=(
'perl-io'
'perl-module-build>=0.28'
'perl-scalar-list-utils'
'perl-test-fatal'
'perl-test-simple'
'perl-test-warnings>=0.005'
'perl-time-hires')
checkdepends=('perl-sub-exporter-progressive' 'perl-test-fatal')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/${_distdir}.tar.gz")
sha512sums=('042f463835f76972bf03a40e47fcffa13b5476c888097cc5f45da1ca36489999beb5cbcc0c8b631170d22eb5e90b0368539f3aa204eed3ebe649da83c5ec739c')
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}/${_distdir}"
perl Build.PL
perl Build
)
}
check() {
cd "${srcdir}/${_distdir}"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
perl Build test
)
}
package() {
cd "${srcdir}/${_distdir}"
perl Build install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
|