diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-10-05 08:21:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-10-05 08:21:32 +0000 |
commit | b513c1829e849cbb1a399b973b1c0196142c2242 (patch) | |
tree | 99789179c01e2c69517355a44a955c05442a5908 /testing/perl-config-grammar | |
parent | 09ea03560858646f8f0773bbaca3eaae360ddb2f (diff) | |
parent | a05e1c8d259597a9596ff2cb66a5e56a37385856 (diff) | |
download | aports-b513c1829e849cbb1a399b973b1c0196142c2242.tar.bz2 aports-b513c1829e849cbb1a399b973b1c0196142c2242.tar.xz |
Merge git://git.alpinelinux.org/jbilyk/aports
Diffstat (limited to 'testing/perl-config-grammar')
-rw-r--r-- | testing/perl-config-grammar/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/perl-config-grammar/APKBUILD b/testing/perl-config-grammar/APKBUILD new file mode 100644 index 000000000..e1fc3e932 --- /dev/null +++ b/testing/perl-config-grammar/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Leonardo Arena <rnalrd@gmail.com> +pkgname=perl-config-grammar +_pkgreal=Config-Grammar +pkgver=1.10 +pkgrel=0 +pkgdesc="A grammar-based, user-friendly config parser" +url="http://search.cpan.org/dist/Config-Grammar/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="" +cpanmakedepends="" +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/D/DS/DSCHWEI/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$_builddir" + make && make test +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="ce904f687f1ee9c70521142a2e0f15c9 Config-Grammar-1.10.tar.gz" |