aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-test2-plugin-nowarnings/APKBUILD
blob: f88e45ec9e48099096a6e62c8f88fce2bee850ed (plain)
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
37
38
39
40
41
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-test2-plugin-nowarnings
_pkgreal="Test2-Plugin-NoWarnings"
pkgver=0.04
pkgrel=0
pkgdesc="Test2::Plugin::NoWarnings perl module"
url="http://search.cpan.org"
arch="noarch"
license="GPL or Artistic 2"
depends="perl-ipc-run3 perl-test2-suite perl-test-simple"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgreal-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make && make test || return 1
}

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

md5sums="e26bb1795ee9a0d382063977026cf795  Test2-Plugin-NoWarnings-0.04.tar.gz"
sha256sums="115be2623661b9acfde6c2f6e7bce260394296b8eda7431228388b37aeed61aa  Test2-Plugin-NoWarnings-0.04.tar.gz"
sha512sums="47f57c5bd5bf78821265c520f8b5736bae4fb254cbef41e270f22b3c50429615e313ef38dfb74201b8b98a85f05c5f4a3e40a7eeb7bc2d9d9937ff081d34465d  Test2-Plugin-NoWarnings-0.04.tar.gz"