aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-getopt-long-descriptive/APKBUILD
blob: 69f9338e6dea7558bc9219ed710e05c26205d3c0 (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
36
37
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-getopt-long-descriptive
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Getopt-Long-Descriptive
pkgver=0.109
pkgrel=1
pkgdesc="Getopt::Long, but simpler and more powerful"
url="https://metacpan.org/release/Getopt-Long-Descriptive/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-sub-exporter perl-params-validate"
makedepends="perl-dev"
checkdepends="perl-test-warnings perl-cpan-meta-check perl-test-fatal"

subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Getopt-Long-Descriptive-$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="9bd3af84119264c9e7e72b470f54782fe0a9e37e6071052a7b43af9529087841f77f06f81a70e4cab05380558216893b0902aabefcfbc970916f65614666969a  Getopt-Long-Descriptive-0.109.tar.gz"