summaryrefslogtreecommitdiff
path: root/user/perl-test2-tools-command/APKBUILD
blob: 8241a30ec9364630a98ca5b9b07ac911585b6e4c (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
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-test2-tools-command
_pkgreal=Test2-Tools-Command
_author=JMATES
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.20
pkgrel=0
pkgdesc="Perl module for testing commands"
url="https://metacpan.org/pod/Test2::Tools::Command"
arch="noarch"
license="BSD-3-Clause"
depends="perl perl-test2-suite perl-file-chdir"
makedepends="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 --destdir="$pkgdir" --prefix="/usr" --installdirs="vendor"
	./Build
}

check() {
	./Build test
}

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

sha512sums="8b7396521fb533e331cdcd97cce2a19808ce91339b900f1743a2179769729b30f23d54ec91babb1d9ea5be291a90687520ef434d5deaf7f9771ad7e80eef94a1  Test2-Tools-Command-0.20.tar.gz"