aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-devel-checklib/APKBUILD
blob: 28a58301f8c5078ba4a2f94de44606bb732edaa9 (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
39
40
41
# Automatically generated by apkbuild-cpan, template 2
# Contributor:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-devel-checklib
_pkgname=Devel-CheckLib
pkgver=1.14
pkgrel=0
pkgdesc="Check if a library is installed"
url="https://metacpan.org/release/MATTN/Devel-CheckLib-$pkgver"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="$cpandepends"
makedepends="perl-dev perl-io-captureoutput"
checkdepends="$cpancheckdepends perl-capture-tiny"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MA/MATTN/Devel-CheckLib-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	default_prepare

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

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

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

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

sha512sums="a5a310cd20e7bfa3c28718b0cba997e029ae0a422ed355d70774691521a3f5c2942eb39269dec1b09e706c1d124559313ab79e787430e0bb3ad43d8aa937539c  Devel-CheckLib-1.14.tar.gz"