summaryrefslogtreecommitdiff
path: root/user/perl-test-file/APKBUILD
blob: 6e60e84427c055b2cad51a5d50d3201cb094f96b (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: Dan Theisen <djt@hxx.in>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-test-file
_pkgreal=Test-File
_author=BDFOY
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.992
pkgrel=0
pkgdesc="Test file attributes"
url="https://metacpan.org/pod/Test::File"
arch="noarch"
license="Artistic-2.0"
depends="perl"
checkdepends="perl-test-pod perl-test-pod-coverage perl-test-utf8"
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="16ba17d3d83374d21d272f5c5ab4dbcb99d09d569025ba415e90963cad3ebe65fedc72a8a6ba57b6ee1fae657aaca7e51999038efd83b90e0b5694e8222c398d  Test-File-1.992.tar.gz"