aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-business-isbn-data/APKBUILD
blob: 3b060cda2145ce699b7ed66b7bd8b27c36f57278 (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=20240413.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="
a1f52b72240b45a85687b27ed7380e4d6f34342852355f4d1a92b66844d8943924857f2d2ab4141fbe3eef4e8699c41dd15db9a485329d08af4617ed32459898  Business-ISBN-Data-20240413.001.tar.gz
"