blob: d60dffd033a79af81ade0cee56eec600615445c8 (
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
|
# Contributor: Swift Geek <swiftgeek «at» gmail.com>
pkgname=perl-module-build-withxspp
pkgver=0.14
pkgrel=1
pkgdesc="Module::Build::WithXSpp - XS++ enhanced flavour of Module::Build"
arch=('any')
url="https://metacpan.org/release/Module-Build-WithXSpp/"
license=('GPL' 'PerlArtistic')
depends=('perl' 'perl-extutils-cppguess' 'perl-extutils-xspp')
makedepends=('perl-module-build')
provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
install=
source=("http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/Module-Build-WithXSpp-${pkgver}.tar.gz")
md5sums=('f3d6ad08127f62eed9baef131870f450')
_src_dir='$srcdir/Module-Build-WithXSpp-$pkgver'
build() {
# Setting these env variables overwrites any command-line-options we don't want...
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
eval cd "$_src_dir"
/usr/bin/perl Build.PL
./Build
}
check () {
eval cd "$_src_dir"
./Build test
}
package () {
eval cd "$_src_dir"
./Build install
perl Build.PL installdirs=vendor destdir="$pkgdir/"
perl Build
# remove perllocal.pod and .packlist
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
|