From c37fe5f609ecef1ec68d5f79fccf90cc27c0a5d9 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Sat, 3 Mar 2012 09:20:23 -0500 Subject: testing/perl-parser-mgc: New APKBUILD --- testing/perl-parser-mgc/APKBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 testing/perl-parser-mgc/APKBUILD (limited to 'testing/perl-parser-mgc') diff --git a/testing/perl-parser-mgc/APKBUILD b/testing/perl-parser-mgc/APKBUILD new file mode 100644 index 0000000000..5504d52203 --- /dev/null +++ b/testing/perl-parser-mgc/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Kiyoshi Aman +# Maintainer: Kiyoshi Aman +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" -- cgit v1.2.3