aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-ffi-checklib/APKBUILD
blob: 1f40434add32167f66d332ac50a680afd3d4d380 (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-ffi-checklib
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=FFI-CheckLib
pkgver=0.26
pkgrel=0
pkgdesc="Check that a library is available for FFI"
url="https://metacpan.org/release/FFI-CheckLib/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test2-suite"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-CheckLib-$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="5949aa0b7dfbf7401c1d916f003ab78762944b188ee66b769036656cc8f37ac12f523dbffdf6a24750b4ca64fd148efc91c6e36159a5c79c0781397060e8d558  FFI-CheckLib-0.26.tar.gz"