summaryrefslogtreecommitdiff
path: root/user/perl-params-validate/APKBUILD
blob: db4b88f8a7746a532753690f3d2e3d1db71e933c (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-params-validate
_pkgreal=Params-Validate
_author=DROLSKY
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.30
pkgrel=0
pkgdesc="Validate Perl method/function parameters"
url="https://metacpan.org/release/Params-Validate"
arch="all"
license="Artistic-2.0"
depends="perl perl-module-implementation"
checkdepends="perl-test-fatal perl-test-requires"
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	perl Build.PL installdirs=vendor
	./Build
}

check() {
	./Build test
}

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

sha512sums="ca6b54a55dc003be6933ad5a9353abf96f2decfc681354fabc974e9666b89b3afe8394cd0a13ec91a5f84c825cbc0b4697a4977bf773feabfefab57006c9f20e  Params-Validate-1.30.tar.gz"