blob: 8f1d37fbb5de29d5a16e94444e0cba3809e7b077 (
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
|
# Maintainer: Moritz Bunkus <moritz@bunkus.org>
pkgname=perl-xs-parse-keyword
pkgver=0.38
pkgrel=2
pkgdesc="XS functions to assist in parsing keyword syntax"
arch=('x86_64')
url="https://metacpan.org/dist/XS-Parse-Keyword"
license=('PerlArtistic' 'GPL')
depends=('perl')
makedepends=('perl-extutils-cchecker>=0.11' 'perl-module-build>=0.4004')
checkdepends=('perl-test2-suite')
source=("https://cpan.metacpan.org/authors/id/P/PE/PEVANS/XS-Parse-Keyword-${pkgver}.tar.gz")
sha512sums=('2b7dfade590c00095681a55ff937e3d9de1f939e0ea9fec6ae5cd06e618c2dacdc226f94047d41e6d95725dbf722feb3f2c8794a9a6950bfe12fc53bdbb823fa')
prepare_environment() {
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}/XS-Parse-Keyword-${pkgver}"
}
build() {
prepare_environment
/usr/bin/perl Build.PL
./Build
}
check() {
prepare_environment
./Build test
}
package() {
prepare_environment
./Build install
find "$pkgdir" "(" -name .packlist -o -name perllocal.pod ")" -delete
}
|