blob: f7082fba7be8f058936a3b7ca11c00e4f6103d6d (
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
|
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
}
|