aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-module-install-authorrequires/APKBUILD
blob: 3ddbc57d933f1e1d262ebdddd3c933c146855db1 (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
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-module-install-authorrequires
_pkgreal=Module-Install-AuthorRequires
pkgver=0.02
pkgrel=0
pkgdesc="declare author-only dependencies"
url="https://metacpan.org/release/Module-Install-AuthorRequires/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl-module-install"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/F/FL/FLORA/Module-Install-AuthorRequires-$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="66d2a603e5700eca0a93523b6adcd0330d439b41730b7ccb2606fc4e43e4b6620cf376637fcbbe71d4733ce144c46822fecac39d4bed3d5303b68863425d9819  Module-Install-AuthorRequires-0.02.tar.gz"