aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-alien-build/APKBUILD
blob: a9946287f6c39c77d98b6e4e3e4583f6384857c7 (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
# 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.21
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-ffi-checklib perl-file-which perl-capture-tiny perl-file-chdir"
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="f78ffbb8d7198707c7bebbf281daa53fb701dd5b35417939020c95c20e2805333998ed2011c8c6049a09516bbe4d228facd827fcbbad660474c0195b99905108  Alien-Build-2.21.tar.gz"