summaryrefslogtreecommitdiff
path: root/user/perl-xml-twig/APKBUILD
blob: e628878ba6319d05895f108a10fc5f2f5cd3b52f (plain) (blame)
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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-xml-twig
_pkgreal=XML-Twig
_author=MIROD
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=3.52
pkgrel=0
pkgdesc="XML, the Perl way"
url="https://metacpan.org/release/XML-Twig"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-xml-parser"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

check() {
	make test
}

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

sha512sums="1594e127fb76c0e53d0bd1f0a12fe3874c9523dd2bc55675d5a6cf44d5682ddea481671f786d3a65e6b69f5307c4da1701529f318453a1f8a22685b2dae793a6  XML-Twig-3.52.tar.gz"