aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-parse-recdescent/APKBUILD
blob: e9be90b38b18118d1632267fd8c5fd8b2fa05c1a (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
34
35
36
37
38
39
40
41
42
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-parse-recdescent
_realname=Parse-RecDescent
pkgver=1.967014
pkgrel=1
pkgdesc="Generate Recursive-Descent Parsers"
url="http://search.cpan.org/~dconway/Parse-RecDescent-1.96.0/"
arch="noarch"
license="Unknown"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-pod perl-test-warn"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/J/JT/JTBRAUN/$_realname-$pkgver.tar.gz"
builddir="$srcdir/$_realname-$pkgver"

prepare() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
}

build() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make || return 1
}

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

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

sha512sums="bdb369cc8ef47f428d52192271d57baaa88db986f4765ef9262bcb82fda1e619102387ce1828998057adb5607e6def667ba557766af470e2ea2cbe00ee31d16a  Parse-RecDescent-1.967014.tar.gz"