aboutsummaryrefslogblamecommitdiffstats
path: root/unmaintained/perl-parser-mgc/APKBUILD
blob: 5504d52203d87fe8ddfbd04e52bda2b4f875fbd5 (plain) (tree)






































                                                                                    
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-parser-mgc
_pkgreal=Parser-MGC
pkgver=0.10
pkgrel=0
pkgdesc="build simple recursive-descent parsers"
url="http://search.cpan.org/dist/Parser-MGC/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-file-slurp"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	perl Build.PL installdirs=vendor || return 1
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build && ./Build test
}

package() {
	cd "$_builddir"
	./Build install destdir="$pkgdir" || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="a0bfd2b152bbcf59e08fa9892ad4a960  Parser-MGC-0.10.tar.gz"