summaryrefslogtreecommitdiff
path: root/user/perl-test-file-sharedir/APKBUILD
blob: a6961c1f3a35d28431d501ec7857b2a2b43145f9 (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-test-file-sharedir
_pkgreal=Test-File-ShareDir
_author=KENTNL
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.001002
pkgrel=0
pkgdesc="Module testing support for Perl"
url="https://metacpan.org/release/Test-File-ShareDir"
arch="noarch"
license="Artistic-1.0-Perl or GPL-2.0-only"
depends="perl perl-class-tiny perl-file-copy-recursive perl-file-sharedir
	perl-path-tiny perl-scope-guard"
checkdepends="perl-test-fatal"
makedepends="perl-dev"
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="858fd7483a63fe4742e48663d64088b811658c9d24dfc730ae1fb5786818949133de98f1cc3a705f67ad97fed1144420a96c22e2cfa663c79953c33f1633f00e  Test-File-ShareDir-1.001002.tar.gz"