summaryrefslogtreecommitdiff
path: root/system/perl-test-needs/APKBUILD
blob: 8e9197eccbeb8f7a4a8fe689c36b70bfe75d6de2 (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-test-needs
_pkgreal=Test-Needs
_author=HAARG
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.002010
pkgrel=0
pkgdesc="Perl module for skipping tests when modules aren't found"
url="https://metacpan.org/release/Test-Needs"
arch="noarch"
license="Artistic-2.0"
depends="perl"
makedepends=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

check() {
	make test
}

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

sha512sums="1dde33f0b161a9cb99d1add141706ae015472a16620c38c159e3ae9654d749c275c7a4a979082c2720999305bf25129e7b178a9afdd6f4b4dfc9ee00281c76eb  Test-Needs-0.002010.tar.gz"