aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-xml-simple/APKBUILD
blob: 4dce9906c0ae2693aa3a7d5fcaede52a06bf87a3 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-xml-simple
pkgver=2.24
pkgrel=1
pkgdesc="Simple XML parser for Perl"
url="http://search.cpan.org/dist/XML-Simple/"
arch="noarch"
license="PerlArtistic"
subpackages="$pkgname-doc"
depends="perl-xml-parser perl"
makedepends="perl-dev"
source="ftp://ftp.cpan.org/pub/CPAN/authors/id/G/GR/GRANTM/XML-Simple-$pkgver.tar.gz"

builddir="$srcdir"/XML-Simple-$pkgver

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

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" -name '.packlist' -delete
	find "$pkgdir" -name 'perllocal.pod' -delete
}
sha512sums="fd57d1be7fdd884d55d22e478a3f94a111b5fc23167851a2ff15894807877c71a1620d3208693e8a1dfb00b385ac4f011d2b56f239c63d2c9d435701df7b3942  XML-Simple-2.24.tar.gz"