summaryrefslogblamecommitdiff
path: root/user/perl-parse-recdescent/APKBUILD
blob: 7e9bd3ebde129826f74e6677c181a698655bf2b3 (plain) (tree)


































                                                                                                                                                                               
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-parse-recdescent
pkgver=1.967015
pkgrel=0
pkgdesc="Generate Recursive-Descent Parsers"
url="https://metacpan.org/pod/Parse::RecDescent"
arch="noarch"
license="Artistic-1.0-Perl AND GPL-2.0"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-warn perl-test-pod"
install=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JT/JTBRAUN/Parse-RecDescent-$pkgver.tar.gz"
builddir="$srcdir/Parse-RecDescent-$pkgver"

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

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

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

sha512sums="38adbfc9a88f09d0465d862b845f48c0921ce462ffccaa7ce8b5f1b7090f33f70e7f00f9ee787fd698b5539804412c44f03e7942cf675d53a17a84c3510e5aa4  Parse-RecDescent-1.967015.tar.gz"