From e956853544cfbb593dd087a00e079e3dbb586def Mon Sep 17 00:00:00 2001 From: Max Rees Date: Sun, 16 Sep 2018 13:54:11 -0400 Subject: user/perl-data-optlist: new package --- user/perl-data-optlist/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 user/perl-data-optlist/APKBUILD (limited to 'user/perl-data-optlist/APKBUILD') diff --git a/user/perl-data-optlist/APKBUILD b/user/perl-data-optlist/APKBUILD new file mode 100644 index 000000000..c2f5f6308 --- /dev/null +++ b/user/perl-data-optlist/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Natanael Copa +# Maintainer: Adélie Perl Team +pkgname=perl-data-optlist +_pkgreal=Data-OptList +pkgver=0.110 +pkgrel=0 +pkgdesc="Parse and validate simple name/value option pairs" +url="https://metacpan.org/release/Data-OptList" +arch="noarch" +license="GPL-1.0+ OR Artistic-1.0-Perl" +depends="perl perl-params-util perl-sub-install" +makedepends="perl-dev" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +sha512sums="68393958a38f509a71cfba61f6dff8303821918ba29ad8492af0c23cfd4f741c6ce98c4f68ad295f27e166287fc546229c430816f0bdd6009d4f60860c967b76 Data-OptList-0.110.tar.gz" -- cgit v1.2.3-70-g09d2