aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-universal-isa/APKBUILD
blob: 6ebbf8cc68cb0b8db89d10462168c26d53acaddd (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 2
# Contributor: 
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-universal-isa
_pkgname=UNIVERSAL-isa
pkgver=1.20171012
pkgrel=0
pkgdesc="Attempt to recover from people calling UNIVERSAL::isa as a function"
url="https://metacpan.org/release/UNIVERSAL-isa/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends=""
cpanmakedepends=""
cpancheckdepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/UNIVERSAL-isa-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$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="abc2943b1706c681734cc03d995859a7d853741ab2013b530aa9f290d8625c5074ec594062c97760044cc1261a20448b9f059287a8f3dae7ba8c303397610518  UNIVERSAL-isa-1.20171012.tar.gz"