summaryrefslogtreecommitdiff
path: root/perl-extutils-xspp/PKGBUILD
blob: 322aa61c065aac9a71c1884618c6428497665d8e (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Maintainer:  Erich Eckner <arch at eckner dot net>
# Contributor: Piotr Rogoża <piotr.r.public at gmail.com>
# Contributor: DarkHeart luke<at>archlinux.us

pkgname=perl-extutils-xspp
pkgver=0.18
pkgrel=1
_author=S/SM/SMUELLER
_perlmod=ExtUtils-XSpp
pkgdesc='ExtUtils::XSpp - XS for C++'
arch=('any')
url="http://search.cpan.org/dist/ExtUtils-XSpp/"
license=('GPL' 'PerlArtistic')
depends=(
perl
# perl-extutils-parsexs → perl
# perl-extutils-typemaps → perl
# perl-digest-md5 → perl
)
checkdepends=(
perl-test-base
perl-test-differences
)
makedepends=(
perl-module-build
# perl-module-build → perl
)
optdepends=()
provides=(
perl-extutils-xspp-cmd
perl-extutils-xspp-driver
perl-extutils-xspp-exception
perl-extutils-xspp-exception-code
perl-extutils-xspp-exception-object
perl-extutils-xspp-exception-perlcode
perl-extutils-xspp-exception-simple
perl-extutils-xspp-exception-stdmessage
perl-extutils-xspp-exception-unknown
perl-extutils-xspp-grammar
perl-extutils-xspp-grammar-yappdriver
perl-extutils-xspp-lexer
perl-extutils-xspp-node
perl-extutils-xspp-node-access
perl-extutils-xspp-node-argument
perl-extutils-xspp-node-class
perl-extutils-xspp-node-comment
perl-extutils-xspp-node-constructor
perl-extutils-xspp-node-destructor
perl-extutils-xspp-node-enum
perl-extutils-xspp-node-enumvalue
perl-extutils-xspp-node-file
perl-extutils-xspp-node-function
perl-extutils-xspp-node-member
perl-extutils-xspp-node-method
perl-extutils-xspp-node-module
perl-extutils-xspp-node-package
perl-extutils-xspp-node-percany
perl-extutils-xspp-node-preprocessor
perl-extutils-xspp-node-raw
perl-extutils-xspp-node-type
perl-extutils-xspp-parser
perl-extutils-xspp-plugin-feature-default_xs_typemap
perl-extutils-xspp-typemap
perl-extutils-xspp-typemap-parsed
perl-extutils-xspp-typemap-reference
perl-extutils-xspp-typemap-simple
perl-extutils-xspp-typemap-wrapper
)
options=(!emptydirs)
source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz")
sha256sums=('9176ad646729e3bd27cf7abf114bedd3424bff1ba61185cfc7d54f3a9223a8ff')

build(){
  cd "$srcdir"/$_perlmod-$pkgver

  # 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

  /usr/bin/perl Build.PL
  perl Build
}
check(){
  cd "$srcdir"/$_perlmod-$pkgver
  perl Build test
}
package(){
  cd "$srcdir"/$_perlmod-$pkgver
  perl Build install
  # remove perllocal.pod and .packlist
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}