summaryrefslogtreecommitdiff
path: root/user/perl-xml-namespacesupport/APKBUILD
blob: e155f6b324b03da8dcb63916f5956fb856597902 (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
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-xml-namespacesupport
pkgver=1.12
pkgrel=0
pkgdesc="A Perl module for processing XML namespaces"
url="https://metacpan.org/pod/XML::NamespaceSupport"
arch="noarch"
license="Artistic-1.0-Perl AND GPL-2.0+"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PERIGRIN/XML-NamespaceSupport-$pkgver.tar.gz"
builddir="$srcdir/XML-NamespaceSupport-$pkgver"

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

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

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

sha512sums="8a29698acc152888b3abd53b277f89209252830cc3b57d587a5b66e5019445d7c1858a08fa548d42387c1143b726da1440e36eb0c69b0b59c3770b5f528f38b2  XML-NamespaceSupport-1.12.tar.gz"