aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-getopt-long-descriptive/APKBUILD
blob: 759c0709944246a3453cbfb409f8cd3c467f241b (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-getopt-long-descriptive
_pkgreal=Getopt-Long-Descriptive
pkgver=0.105
pkgrel=0
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 perl-test-warnings perl-test-fatal perl-cpan-meta-check"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="e7528ac509bc7fb49ee59a8ed8dec0c9a619a8f34c207e7a9185829666248797211a56576721b7fc8cdd44ae55d2d45f048958b79a6228ee76d91c3a52685236  Getopt-Long-Descriptive-0.105.tar.gz"