aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-xml-parser/APKBUILD
blob: 1c234e90e3243a94a537db42c5d96c331eaaeda3 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-xml-parser
_pkgreal=XML-Parser
pkgver=2.43
pkgrel=0
pkgdesc="A perl module for parsing XML documents"
url="http://search.cpan.org/dist/XML-Parser/"
arch="all"
license="GPL PerlArtistic"
cpandepends="perl-libwww"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev expat-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/$_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="2c9ca46832d8e7578bcda99eba3a47f1  XML-Parser-2.43.tar.gz"
sha256sums="e56ce06b516eff5335cb3b7e0bb268537c77991af1bfd86c39cebabc407f4549  XML-Parser-2.43.tar.gz"
sha512sums="211471e9bc99894c6e855d08ff315978af98aa3f9aaae1e3497d9ff5a8cef33636214338544c1ba3b3ea024e8b63423c69d113f2c045d6741350b471e3c35225  XML-Parser-2.43.tar.gz"