aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-ref-util/APKBUILD
blob: f297c688ac976bbd870d31975ddba1a3bd770359 (plain) (blame)
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
# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Sergey Safarov <s.safarov@gmail.com>
pkgname=perl-ref-util
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Ref-Util
pkgver=0.204
pkgrel=2
pkgdesc="Utility functions for checking references"
url="https://metacpan.org/release/Ref-Util/"
arch="noarch"
license="MIT"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/A/AR/ARC/Ref-Util-$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="12834e13de5578232e40ba308e97786c60fcec4da9dc0b2922506d42645e8b3c3234663cf3b9c1dc374772107de953ed49ba8b52a2bac79183e3860338c0b288  Ref-Util-0.204.tar.gz"