blob: 20369a9fa558e8be99f2249b8d026b4d4880a3ab (
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.25
pkgrel=1
pkgdesc="Simple XML parser for Perl"
url="https://metacpan.org/release/XML-Simple"
arch="noarch"
license="Artistic-1.0-Perl"
subpackages="$pkgname-doc"
depends="perl-xml-parser perl"
makedepends="perl-dev"
source="https://cpan.metacpan.org/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="0f1a6a1bdb8f6ac6fa4deef33d09930eb4758b4a3ed4431624004ffa2b1eb02f0d6ce14cb4942162cb76f7aa39fea4ec6a71e1eb9ebd464b710db7024bdd990c XML-Simple-2.25.tar.gz"
|