aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-sub-exporter-formethods/APKBUILD
blob: 8f1815cf38628fd9f4211af65aeda9549430c84d (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
35
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-sub-exporter-formethods
_pkgreal=Sub-Exporter-ForMethods
pkgver=0.100052
pkgrel=3
pkgdesc="helper routines for using Sub::Exporter to build methods"
url="https://metacpan.org/release/Sub-Exporter-ForMethods/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl-sub-exporter perl-sub-name"
checkdepends="perl-namespace-autoclean"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Sub-Exporter-ForMethods-$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="75dc9d150f0d0fe33f727363582f99f1ca5c4b76e789e33e640f648588c23531516a99affd9097bc38e175e099dac817d307406dd2380f422aae401f3b5405ca  Sub-Exporter-ForMethods-0.100052.tar.gz"