aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-business-isbn/APKBUILD
blob: 732d987f4a0941cd1bb7b7417fda622cda459db4 (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
42
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-business-isbn
_pkgreal=Business-ISBN
pkgver=3.003
pkgrel=0
pkgdesc="work with International Standard Book Numbers"
url="http://search.cpan.org/dist/Business-ISBN/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-mojolicious perl-business-isbn-data perl-uri"
cpanmakedepends="perl-business-isbn-data perl-test-pod"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare || return 1

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

build() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make && make test
}

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

md5sums="dcb00b9443c66e488406f4dadc741947  Business-ISBN-3.003.tar.gz"
sha256sums="f585e17350b016e784a53df3437451bce617a4cf4471bd703e45c439f1ef4bc4  Business-ISBN-3.003.tar.gz"
sha512sums="7321290de47e1a6cfe6bbdcc9eae410a45fa6148da233fca122e6366737d3dacb6a0329db1c5b191db6c064ee0679324fe00675b8bc055fbf6771badbb4ea8af  Business-ISBN-3.003.tar.gz"