summaryrefslogtreecommitdiff
path: root/user/perl-pegex/APKBUILD
blob: e8d845a1cf284a9347181b04bdb100c6737c1f8e (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
35
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-pegex
_pkgreal=Pegex
_author=INGY
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.70
pkgrel=0
pkgdesc="Acmeist PEG Parser Framework"
url="https://metacpan.org/pod/Pegex"
arch="noarch"
license="Artistic-1.0-Perl AND GPL-2.0"
depends="perl"
checkdepends="perl-yaml-libyaml"
makedepends="perl-file-sharedir-install"
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="9a24c27fbbb36f83b2437cb17321e58167b3d5c857383ef0422557c0d4a956b90c24f11048843d29622670ea731ca589dd09f0fd68b48d89b3c885d1c86b5f6e  Pegex-0.70.tar.gz"