aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-hash-multivalue/APKBUILD
blob: 82ea4a7f00bb9656938790afbeb7b95068346d2e (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-hash-multivalue
pkgver=0.15
pkgrel=0
pkgdesc="Hash::MultiValue perl module"
url="http://search.cpan.org/dist/Hash-MultiValue/"
arch="noarch"
license="GPLv2 or Artistic"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Hash-MultiValue-$pkgver.tar.gz"

builddir="$srcdir/Hash-MultiValue-$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="fd97db887590c8c9ecbd0e58434df01fae8e3d2aa2335245ea1217d454e50c3bf1177921dd340f4cca3685808bebc573d13c892da7ccd685d3658c1db9d96465  Hash-MultiValue-0.15.tar.gz"