summaryrefslogtreecommitdiff
path: root/repo/perl-module-build/perl-module-build.xibuild
blob: 8c88836fc3ab7a25f417f7b0d00824fe5cd00939 (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
#!/bin/sh

NAME="perl-module-build"
DESC="Build and install Perl modules"

MAKEDEPS=" perl"

PKG_VER=0.4231
SOURCE="https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-$PKG_VER.tar.gz"

prepare() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL installdirs=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	./Build
}

check() {
	./Build test
}


package() {
	./Build install destdir="$PKG_DEST"
	find "$PKG_DEST" \( -name perllocal.pod -o -name .packlist \) -delete
}