From 0fe3ba057ebb844b6812cd1350aae2b2a6b7b79c Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 2 Oct 2018 20:01:16 +0000 Subject: user/perl-file-find-object: new package --- user/perl-file-find-object/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 user/perl-file-find-object/APKBUILD diff --git a/user/perl-file-find-object/APKBUILD b/user/perl-file-find-object/APKBUILD new file mode 100644 index 000000000..b35c550d5 --- /dev/null +++ b/user/perl-file-find-object/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=perl-file-find-object +pkgver=0.3.2 +pkgrel=0 +pkgdesc="Object-oriented File::Find replacement for Perl" +url="https://metacpan.org/release/File-Find-Object" +arch="noarch" +license="Artistic-2.0" +depends="perl-class-xsaccessor" +makedepends="perl-dev perl-module-build" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/File-Find-Object-v$pkgver.tar.gz" +builddir="$srcdir/File-Find-Object-v$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="58ca07083da520aee03945259ac89b6b584728d89ad52aea1a6f19a14da73fc92fcfc46c01656130d64fbc9fc9e4b1c5ef56274f30ebe3711972235dd8945956 File-Find-Object-v0.3.2.tar.gz" -- cgit v1.2.3-70-g09d2