summaryrefslogtreecommitdiff
path: root/repo/perl-config-autoconf/perl-config-autoconf.xibuild
blob: 68ad5d60e1e2f2059e277ec937190af25809ad89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

NAME="perl-config-autoconf"
DESC="A module to implement some of AutoConf macros in pure perl."

MAKEDEPS=" perl"

PKG_VER=0.320
SOURCE="https://cpan.metacpan.org/authors/id/A/AM/AMBS/Config-AutoConf-$PKG_VER.tar.gz"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

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