aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-alien-build/APKBUILD
blob: 7d1158451f6237ba870c724c65a6736bfa0df7bd (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-alien-build
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Alien-Build
pkgver=2.17
pkgrel=0
pkgdesc="Build external dependencies for use in CPAN"
url="https://metacpan.org/release/Alien-Build/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-path-tiny perl-file-chdir perl-capture-tiny perl-file-which perl-ffi-checklib"
makedepends="perl-dev perl-file-which"
checkdepends="perl-test2-suite"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

sha512sums="daa504cc2017affcdfee6b2b27f6ee496e371908924b5c44e440ae2eb70fa9a02fa438742446d7dc4a55ec441daa76273736d2b408ac8e1060f9cfad7143998d  Alien-Build-2.17.tar.gz"