aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-yaml/APKBUILD
blob: 79f06277c0e582a58f714226831e5853e9f78ec5 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-yaml
_pkgreal=YAML
pkgver=1.21
pkgrel=0
pkgdesc="YAML Ain't Markup Language (tm)"
url="http://search.cpan.org/dist/YAML/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="perl-test-yaml"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/I/IN/INGY/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

build() {
	cd "$builddir"
	make && make test
}

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

md5sums="a2c85b8be2df7a01a23dfa7d05d91323  YAML-1.21.tar.gz"
sha256sums="2e29de56102bcfeb13c5c9656e0747e0433457351f4c9f5ff708fc3d8debc531  YAML-1.21.tar.gz"
sha512sums="1542c9a931a7c2c460cd89d66978747a6feee855993529b05638456ff4f16fa5273e539b7423e843d63ccfd29c650e2d46b9140388d44cc6c812a0e0c6be9cd3  YAML-1.21.tar.gz"