summaryrefslogtreecommitdiff
path: root/user/perl-xml-simple/APKBUILD
blob: cc081098e553ac597e7ef997460719d3ff24ba05 (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
# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-xml-simple
_pkgreal=XML-Simple
_author=GRANTM
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.25
pkgrel=0
pkgdesc="A Perl module for parsing XML"
url="https://metacpan.org/pod/XML::Simple"
arch="noarch"
license="Artistic-1.0-Perl AND GPL-2.0+"
depends="perl-xml-parser perl-xml-namespacesupport"
makedepends=""
subpackages="$pkgname-doc"
source="https://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="0f1a6a1bdb8f6ac6fa4deef33d09930eb4758b4a3ed4431624004ffa2b1eb02f0d6ce14cb4942162cb76f7aa39fea4ec6a71e1eb9ebd464b710db7024bdd990c  XML-Simple-2.25.tar.gz"