aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-business-isbn-data/APKBUILD
blob: 053f493129950abd9c4e81713f0e50c17e832f80 (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: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-business-isbn-data
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Business-ISBN-Data
pkgver=20230516.001
pkgrel=0
pkgdesc="data pack for Business::ISBN"
url="https://metacpan.org/release/Business-ISBN-Data/"
arch="noarch"
license="Artistic-2.0"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BD/BDFOY/Business-ISBN-Data-$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="
ce680bee0322c5bdf009e93e9a07942fddc24f1398ac96fa2a7402c0c2dbc339885ddf31bc1e238556b7fcd7c61ec5ab4ca5f2737646ea8faeadfbc511803f71  Business-ISBN-Data-20230516.001.tar.gz
"