aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-hash-merge/APKBUILD
blob: 9bbf4a2b047faf79b50eaac16dcf2ecc3e64830d (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
42
43
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-hash-merge
_pkgreal=Hash-Merge
pkgver=0.300
pkgrel=0
pkgdesc="Merges arbitrarily deep hashes into a single hash"
url="http://search.cpan.org/dist/Hash-Merge/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-clone"
makedepends="perl-dev"
checkdepends="perl-clone-choose"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/$_pkgreal-$pkgver.tar.gz"

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

prepare() {
	default_prepare

	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	make
}

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

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

sha512sums="a7d988f64ff2487b4d1237d01d424ea49c99fd64b721b331735223b86342f54442007ee371f0a94646f835997446cc99e857b3cd23429639bf47af8fe42bad2e  Hash-Merge-0.300.tar.gz"