aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-xml-xpath/APKBUILD
blob: 42d16ba7a672d0c791ba24592d0f3829554c810e (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
25
26
27
28
29
30
31
32
33
34
35
36
37
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-xml-xpath
_pkgreal=XML-XPath
pkgver=1.37
pkgrel=0
pkgdesc="a set of modules for parsing and evaluating XPath statements"
url="http://search.cpan.org/dist/XML-XPath/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-xml-parser perl-path-tiny"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MA/MANWAR/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

build() {
	cd "$builddir"
	make && make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="72103d045298f8d7fb945d8b1ae31313  XML-XPath-1.37.tar.gz"
sha256sums="b8ae1196184f794528a9727988dce944ecec7155e6ee1c433b17e12737a22725  XML-XPath-1.37.tar.gz"
sha512sums="37531049cb7d029d8777b21368404af17cee32328a6426a6470b43d050dc2bb605ac6cfefd51fe1614fe76bbb9306986a50960ea8e106232c209d9efe8c6dac0  XML-XPath-1.37.tar.gz"