aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-business-isbn-data/APKBUILD
blob: 0f113b36124c1fb1dfe3decce1512710aefd7a09 (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 4
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-business-isbn-data
pkgver=20240601.001
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Business-ISBN-Data
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/BR/BRIANDFOY/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 \
		NO_PACKLIST=1 \
		NO_PERLLOCAL=1
	make
}

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

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
8bfc931404121586fffc53837084161536958b3b40532f22643c54f929211e8758d106933bce297baffd5c3156bc79e56e9d6fd084562df3fa0a75131c5e7248  Business-ISBN-Data-20240601.001.tar.gz
"