aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test-needs/APKBUILD
blob: eeab42394aac72458b18215083da56ff8db774b0 (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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-test-needs
_pkgreal="Test-Needs"
pkgver=0.002005
pkgrel=1
pkgdesc="Test::Needs perl module"
url="http://search.cpan.org"
arch="noarch"
license="GPL or Artistic"
depends=""
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/Test-Needs-$pkgver.tar.gz"

builddir="$srcdir"/$_pkgreal-$pkgver

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

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

sha512sums="b3023067d1f8726b0ae2162d0b3722193a3b56d12d5c207cf9558f1552ae8ab554773b843d00f1c481857c259fa869b8fdaf5a4838ab0768f38726ddec4130c6  Test-Needs-0.002005.tar.gz"