summaryrefslogtreecommitdiff
path: root/repo/perl-xml-xpath/perl-xml-xpath.xibuild
blob: 4a7d53f536da01295f1c30242b40806e0a0f1c56 (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.48
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
}