summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/perl-file-find-object/APKBUILD33
1 files changed, 33 insertions, 0 deletions
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 <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+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"