summaryrefslogtreecommitdiff
path: root/user/perl-xml-parser/APKBUILD
blob: c006f858ad2c64f76edcece9f7fc3214ee4ee5d9 (plain) (blame)
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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-xml-parser
_pkgreal=XML-Parser
_author=TODDR
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.46
pkgrel=0
pkgdesc="Perl module for parsing XML documents"
url="https://metacpan.org/release/XML-Parser"
arch="all"
license="Artistic-2.0-Perl OR GPL-2.0-only"
depends="perl-libwww"
makedepends="perl-dev expat-dev"
subpackages="$pkgname-doc"
source="http://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="c4609495cc5ca34952f61876a690ef76d42eee6689d1bedb8036c9eab918525ec5213f1639c7178c029ee0f8765a2ca5eb0197f6e39b8be6d5dbc3f3c1d0b389  XML-Parser-2.46.tar.gz"