summaryrefslogtreecommitdiff
path: root/repo/perl-xml-xpath/perl-xml-xpath.xibuild
blob: 6c88577915e358f7ce0015cd2e84042139368530 (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
#!/bin/sh

NAME="perl-xml-xpath"
DESC="Parse and evaluate XPath statements."

MAKEDEPS="perl-path-tiny"

PKG_VER=1.44
SOURCE="https://cpan.metacpan.org/authors/id/M/MA/MANWAR/XML-XPath-$PKG_VER.tar.gz"

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

check() {
	make test
}

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